How do you test your GraphQL requests? I have a qu...
# prisma-whats-new
o
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
You can test it in the playground:
graphcool playground
o
i am looking for a way to automate that, have unit tests for methods that construct queries/mutations
to be sure I send properly formatted data
w
Ohhh I am looking for that too, but I am trying relay
n
o
@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.