UNPKG

@graphql-tools/utils

Version:

Common package containing utils and types for GraphQL tools

6 lines (5 loc) 495 B
import { ASTNode, GraphQLObjectType, GraphQLSchema, OperationTypeNode } from 'graphql'; export declare function getDefinedRootType(schema: GraphQLSchema, operation: OperationTypeNode, nodes?: ASTNode[]): GraphQLObjectType; export declare const getRootTypeNames: (schema: GraphQLSchema) => Set<string>; export declare const getRootTypes: (schema: GraphQLSchema) => Set<GraphQLObjectType>; export declare const getRootTypeMap: (schema: GraphQLSchema) => Map<OperationTypeNode, GraphQLObjectType>;