UNPKG

sofa-api

Version:

Create REST APIs with GraphQL

8 lines (7 loc) 337 B
import { type DocumentNode, type OperationDefinitionNode, type VariableDefinitionNode } from 'graphql'; export type OperationInfo = { operation: OperationDefinitionNode; variables: ReadonlyArray<VariableDefinitionNode>; name: string; } | undefined; export declare function getOperationInfo(doc: DocumentNode): OperationInfo;