Introducing Automatic Schema Imports for GraphQL Requests
The GraphQL schema defines what is supported by the API and gives an idea of what can be queried. It is instrumental when it comes to understanding the API and building your queries against that API. Postman has been allowing users to import a schema and connect it against a GraphQL API request.
Today, we are introducing an option to easily import schemas for your GraphQL requests.
For requests with body type GraphQL, Postman will now automatically import the GraphQL schema if available. Once the schema is successfully imported, the GraphQL query editor will automatically leverage this schema to provide features such as the autocomplete function:
Schema imports for GraphQL type requests are automatically turned on by default, but you can choose to opt out of it or use your existing schemas if needed.
We hope this feature helps you build your GraphQL queries faster in Postman. You can learn more about GraphQL in our Learning Center—and let us know what you think in the comments or feel free to open a ticket in our public issue tracker on GitHub.