1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- 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';
- import Maybe from '../tsutils/Maybe';
- 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>,
- ): GraphQLError[];
- export function assertValidSDL(documentAST: DocumentNode): undefined;
- export function assertValidSDLExtension(
- documentAST: DocumentNode,
- schema: GraphQLSchema,
- ): undefined;
|