Unable to use an env variable in the graphQL Client

I am using the GraphQL client and am unable to use an env variable while passing an arg value. Is there something similar to using a variable, say {{id}} as an arg value for the GQL query?

Hi @altimetry-administ10. Welcome to the Postman Community!

Yes, there is. You can use an environment/collection/global variable in a GraphQL request. Simply use this variable in the Variables tab of the GraphQL Query Builder, as shown below.

Remember to declare these variables in your GraphQL Schema as variables in Postman are passed onto the Schema.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.