My company is moving from REST APIs to GraphQL. I'm trying to use Postman (which I'm new to) to automate some tests for the GraphQL stuff, and I'm running into issues. The manual side of Postman testing has a radio button to switch to GraphQL, but the automation framework seems to only support JSON. For example, you can automatically interpret a response as JSON with pm.response.json(), but there's no equivalent pm.response.graphql.

My Google results are turning up articles on how to manually test GraphQL with Postman, which isn't helpful to me. Is there something simple I'm missing? Or an article I can read to help me get unstuck?


1 Answer 1



This is a postman example , just click try with postman and it opens up postman with collection and everything set up

You add test scripts as same like you do for rest api, there is no difference:

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.