@graphql-tools/graphql
Version:
Fork of GraphQL.js
10 lines (9 loc) • 530 B
text/typescript
import type { OperationDefinitionNode, OperationTypeDefinitionNode } from '../language/ast.cjs';
import type { GraphQLObjectType } from '../type/definition.cjs';
import type { GraphQLSchema } from '../type/schema.cjs';
/**
* 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;