Vincit/venia

Fails to generate query when there are nested fields with arguments

Closed this issue · 0 comments

Sample

  (testing "Should create a valid graphql string using params on nested fields."
    (let [data [[[:employee {:id 1 :active true} [:name :address [:friends {:id 1} [:name :email]]]]]]
          query-str "{employee(id:1,active:true){name,address,friends(id:1){name,email}}}"]
      (is (= query-str (v/graphql-query data)))))

This test currently fails.