1 | import { GraphQLSchema, GraphQLError, Source } from 'graphql';
|
2 | export interface InvalidDocument {
|
3 | source: Source;
|
4 | errors: GraphQLError[];
|
5 | deprecated: GraphQLError[];
|
6 | }
|
7 | export interface ValidateOptions {
|
8 | |
9 |
|
10 |
|
11 |
|
12 | strictFragments?: boolean;
|
13 | |
14 |
|
15 |
|
16 |
|
17 | strictDeprecated?: boolean;
|
18 | |
19 |
|
20 |
|
21 |
|
22 | keepClientFields?: boolean;
|
23 | |
24 |
|
25 |
|
26 |
|
27 | apollo?: boolean;
|
28 | |
29 |
|
30 |
|
31 |
|
32 | maxDepth?: number;
|
33 | }
|
34 | export declare function validate(schema: GraphQLSchema, sources: Source[], options?: ValidateOptions): InvalidDocument[];
|