Metadata are relevant information regarding the scope of data in the GraphQL API. They can help you understand the relationship and the utility of the request processes.
To check GraphQL API’s metadata, follow the steps described on How to query GraphQL requests on Postman using the
Then, on Postman’s GraphQL request code box, add the following Introspection Query:
Send your request. You’ll receive a response similar to this:
The API returns the following metadata:
- Datasets available to query, such as dataStreamedMetrics and httpMetrics.
- Available fields for each dataset query.
- Each type for returnable fields, such as Int, String, DateTime, and so on.
For more information on the available datasets with the GraphQL API, visit the datasets documentation page.
Watch a video tutorial on consulting metadata with GraphQL on Azion’s YouTube channel: