UNPKG

gqlcheck

Version:

Performs additional checks on your GraphQL documents and operations to ensure they conform to your rules, whilst allow-listing existing operations and their constituent parts (and allowing overrides on a per-field basis). Rules include max selection set d

15 lines (14 loc) 630 B
import type { ASTNode, FragmentDefinitionNode, OperationDefinitionNode } from "graphql"; import { TypeInfo } from "graphql"; export declare class TypeAndOperationPathInfo extends TypeInfo { operationPathParts: string[]; _introspectionDepth: number; currentRoot: FragmentDefinitionNode | OperationDefinitionNode | null; enter(node: ASTNode): void; leave(node: ASTNode): void; getCurrentRoot(): OperationDefinitionNode | FragmentDefinitionNode | null; enterOperationPath(node: ASTNode): void; leaveOperationPath(node: ASTNode): void; getOperationPath(): string; isIntrospection(): boolean; }