How do you test your GraphQL requests? I have a query or a mutation and I want to know if its formed correctly. are you doing it string === string or there are better ways? It may have different order of result fields but still be valid.
w
Wbert
12/12/2017, 4:23 PM
You can test it in the playground:
graphcool playground
o
Oleg Galaburda
12/12/2017, 4:32 PM
i am looking for a way to automate that, have unit tests for methods that construct queries/mutations
Oleg Galaburda
12/12/2017, 4:32 PM
to be sure I send properly formatted data
w
Wbert
12/12/2017, 7:45 PM
Ohhh I am looking for that too, but I am trying relay
@nilan thanks! Is there a way to additionally validate query that is being sent against schema or something like that? I'm not sure if its a valid question, new to GraphQL, just feels right to do this. I was thinking probably to make GraphQL > JSON then validate.