Hi, is there a documentation for Playground? Couldn't find it. What is the syntax to use query variables? Thanks
r
radicand
12/23/2017, 6:56 PM
Query vars are just JSON format, in the variables window at the bottom
j
Jonathan
12/23/2017, 11:36 PM
Many thanks. In the query variable field, I put { "emai": "xyz@xyz.com" } and in the main field I put:
Jonathan
12/23/2017, 11:37 PM
query { User(email: $email) { id } }
Jonathan
12/23/2017, 11:38 PM
and the playground interface says at the same time the $email variable is not defined in the main part, and in the query variable field it says the $email variable does not appear in any graphql query. Any idea why? Thanks
r
radicand
12/24/2017, 1:32 AM
query UserQuery($email: String) { User(email $email) { id } }