How to pass variables in mutation graphQL Playground?

Piyush Bansal picture Piyush Bansal · Jul 10, 2019 · Viewed 8.3k times · Source

I am using apollo express server 2.0. And I am trying to execute mutation in the graphql playground. Here is the mutation I have attached a screenshot with another screenshot of a variable.

Mutation Command to create new user Mutation variables

I am getting the following error when I am trying to execute mutation command in the graphql playground.

enter image description here

Please guide me where I am incorrect.

Answer

cuspymd picture cuspymd · Oct 30, 2019

There are two tabs QUERY VARIABLES and HTTP HEADERS in the input field at the bottom right of graphQL Playground. Please check the tab QUERY VARIABLES is selected.