GraphQL support in Postman available for early access on canary channel

We have been working on introducing native support for GraphQL queries in Postman. This is now available for early access on the Postman Canary channel.

This version supports,

  1. Sending GraphQL queries in request body as POST requests

  1. Variables in GraphQL queries

  1. Creating APIs in Postman with GraphQL schema type

  1. Query autocompletion integrated with user defined GraphQL schemas, Coming Soon!

You can download the latest version of the canary channel here. We would love to hear your feedback on ways we can improve working with GraphQL in Postman.

4 Likes

Is the feature available via Newman yet?

Yes, it is available in the Canary (Beta) version.

This is awesome! Thank you guys finally can query my edgar and maya

Bolo bharath mata ki jai

This is awesome, thank you team. Finally I can query graphQL

@david.hale Yes, Newman v4.5.0 added support for GraphQL request body.

Hey everyone,

We have enabled support for query autocompletion powered by API schemas on the latest Canary.

To give it a try,

  1. Create a Postman API schema of type GraphQL

If you do not have the schema already, you can use the introspection APIs to get the schema. I used this tool to extract the schema from the introspection APIs - https://github.com/prisma/get-graphql-schema

  1. Select the schema in your request

  2. Enjoy schema autocompletion in your queries :grinning:

Please give it a try and let us know what you think.

2 Likes

Hey, really appreciate the support for GraphQL. It is really great.
Is there a way to use Introspection query to fetch Schema and validate on the fly?
The way GraphiQL or GraphQL Playground ( https://github.com/prisma/graphql-playground ) does it?

Thanks,
Nishant

We do not yet utilise introspection APIs to fetch schemas. We are looking into ways to use it and create a seamless experience.

Until then you can use community tools to fetch the schemas through introspection APIs. I found this one https://github.com/prisma/get-graphql-schema to be useful.

We’ll share updates on further improvements.

GraphQL support in Postman is now on available on the production channel :confetti_ball: :tada: