Why do many teams disable this kind of GraphQL query in production?
POST /graphql
{"query":"{ __schema { types { name fields { name } } } }"}
- It disables the API's rate limits
- It deletes cached query results
- It forces responses over plain HTTP
- It reveals the whole API schema
Introspection returns every type, field and mutation, handing an attacker a full map of hidden or internal operations. It is useful in development but often turned off publicly.
Play Cybersecurity ▸