UNPKG

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