UNPKG

666 BTypeScriptView Raw
1import { GraphQLSchema, DocumentNode, OperationDefinitionNode, GraphQLNamedType } from 'graphql';
2export declare type VariableToType = {
3 [variable: string]: GraphQLNamedType;
4};
5export declare type QueryFacts = {
6 variableToType?: VariableToType;
7 operations?: OperationDefinitionNode[];
8 documentAST?: DocumentNode;
9};
10export default function getOperationFacts(schema?: GraphQLSchema, documentStr?: string | null): QueryFacts | undefined;
11export declare const getQueryFacts: typeof getOperationFacts;
12export declare function collectVariables(schema: GraphQLSchema, documentAST: DocumentNode): VariableToType;
13//# sourceMappingURL=getQueryFacts.d.ts.map
\No newline at end of file