@graphql-tools/utils
Version:
Common package containing utils and types for GraphQL tools
5 lines (4 loc) • 352 B
TypeScript
import { DocumentNode, OperationDefinitionNode } from 'graphql';
import { ExecutionRequest } from './Interfaces.js';
export declare function getOperationASTFromDocument(documentNode: DocumentNode, operationName?: string): OperationDefinitionNode;
export declare const getOperationASTFromRequest: (request: ExecutionRequest) => OperationDefinitionNode;