UNPKG

@graphql-inspector/core

Version:

Tooling for GraphQL. Compare GraphQL Schemas, check documents, find breaking changes, find similar types.

16 lines (15 loc) 430 B
import { FragmentDefinitionNode, OperationDefinitionNode, Source } from 'graphql'; export interface Document { source: Source; fragments: { node: FragmentDefinitionNode; source: string; }[]; operations: { node: OperationDefinitionNode; source: string; }[]; hasFragments: boolean; hasOperations: boolean; } export declare function readDocument(source: Source): Document;