Discovering Schema Information
Using Introspection
Query the below field
Probing for Introspection
If introspection is enabled, the response returns the names of all available queries.
Running a Full Introspection Query
The example query below returns full details on all queries, mutations, subscriptions, types, and fragments.
Visualizing Introsepection Results
Suggestions
Even if introspection is entirely disabled, you can sometimes use suggestions to glean information on an API's structure.
Suggestions are a feature of the Apollo GraphQL platform in which the server can suggest query amendments in error messages.
These are generally used where a query is slightly incorrect but still recognizable (for example, There is no entry for 'productInfo'. Did you mean 'productInformation' instead?
).
You can potentially glean useful information from this, as the response is effectively giving away valid parts of the schema.
Last updated
Was this helpful?