1 | import {
|
2 | OperationDefinitionNode,
|
3 | OperationTypeDefinitionNode,
|
4 | } from '../language/ast';
|
5 | import { GraphQLSchema } from '../type/schema';
|
6 | import { GraphQLObjectType } from '../type/definition';
|
7 |
|
8 | /**
|
9 | * Extracts the root type of the operation from the schema.
|
10 | */
|
11 | export function getOperationRootType(
|
12 | schema: GraphQLSchema,
|
13 | operation: OperationDefinitionNode | OperationTypeDefinitionNode,
|
14 | ): GraphQLObjectType;
|