UNPKG

@graphql-tools/stitch

Version:

A set of utils for faster development of GraphQL tools

9 lines (8 loc) 429 B
import { DocumentNode, TypeExtensionNode, SchemaExtensionNode, SchemaDefinitionNode, TypeDefinitionNode, DirectiveDefinitionNode } from 'graphql'; export declare function extractDefinitions(ast: DocumentNode): { typeDefinitions: TypeDefinitionNode[]; directiveDefs: DirectiveDefinitionNode[]; schemaDefs: SchemaDefinitionNode[]; schemaExtensions: SchemaExtensionNode[]; extensionDefs: TypeExtensionNode[]; };