GraphQL servers include built-in introspection fields that allow clients to discover your API’s types and structure. Configure The GraphQL Introspection Control policy inspects incoming operations blocks requests that reference restricted fields.
Use the introspection policy to block requests to a combination of these fields:
-
__schema, used to discover the full API schema.
-
__type, used to look up details for a specific type by name.
-
__typename, used to read the concrete type name of an object.
Blocking __typename can affect GraphQL client libraries that rely on it for result caching.
After Omni Gateway resolves the GraphQL query, the policy evaluates the operation text. Omni Gateway doesn’t inspect the operation text for persisted queries and passes them through without introspection checks.