UNPKG

631 BTypeScriptView Raw
1import type { ASTVisitor } from '../../../language/visitor';
2import type { ValidationContext } from '../../ValidationContext';
3/**
4 * Prohibit introspection queries
5 *
6 * A GraphQL document is only valid if all fields selected are not fields that
7 * return an introspection type.
8 *
9 * Note: This rule is optional and is not part of the Validation section of the
10 * GraphQL Specification. This rule effectively disables introspection, which
11 * does not reflect best practices and should only be done if absolutely necessary.
12 */
13export declare function NoSchemaIntrospectionCustomRule(
14 context: ValidationContext,
15): ASTVisitor;