UNPKG

graphql

Version:

A Query Language and Runtime which can target any service.

16 lines (15 loc) 530 B
import type { OperationDefinitionNode, OperationTypeDefinitionNode, } from '../language/ast'; import type { GraphQLObjectType } from '../type/definition'; import type { GraphQLSchema } from '../type/schema'; /** * Extracts the root type of the operation from the schema. * * @deprecated Please use `GraphQLSchema.getRootType` instead. Will be removed in v17 */ export declare function getOperationRootType( schema: GraphQLSchema, operation: OperationDefinitionNode | OperationTypeDefinitionNode, ): GraphQLObjectType;