123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- import { Maybe } from '../jsutils/Maybe';
- import { GraphQLError } from '../error/GraphQLError';
- import { DocumentNode } from '../language/ast';
- import { GraphQLSchema } from '../type/schema';
- import { TypeInfo } from '../utilities/TypeInfo';
- import { ValidationRule, SDLValidationRule } from './ValidationContext';
- export function validate(
- schema: GraphQLSchema,
- documentAST: DocumentNode,
- rules?: ReadonlyArray<ValidationRule>,
- typeInfo?: TypeInfo,
- options?: { maxErrors?: number },
- ): ReadonlyArray<GraphQLError>;
- export function validateSDL(
- documentAST: DocumentNode,
- schemaToExtend?: Maybe<GraphQLSchema>,
- rules?: ReadonlyArray<SDLValidationRule>,
- ): Array<GraphQLError>;
- export function assertValidSDL(documentAST: DocumentNode): void;
- export function assertValidSDLExtension(
- documentAST: DocumentNode,
- schema: GraphQLSchema,
- ): void;
|