graphql-disable-introspection

JSON →
library 1.2.0 ·javascript maintenance
verified Jun 7, 2026

A validation rule for graphql-js that disables introspection queries by rejecting any query containing __schema or __type fields. Current stable version is 1.2.0. The package has been in maintenance mode with infrequent updates. It supports a broad range of graphql versions (0.9.x through 15.x). A key differentiator is its simplicity compared to more complex middleware solutions like graphql-no-introspection, though it only blocks specific field names rather than the introspection query system as a whole.