Hi, is there a documentation for Playground? Could...
# prisma-whats-new
j
Hi, is there a documentation for Playground? Couldn't find it. What is the syntax to use query variables? Thanks
r
Query vars are just JSON format, in the variables window at the bottom
j
Many thanks. In the query variable field, I put { "emai": "xyz@xyz.com" } and in the main field I put:
query { User(email: $email) { id } }
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
query UserQuery($email: String) { User(email $email) { id } }