Latest
function getOperationRootType
import { getOperationRootType } from "https://dotland.deno.dev/x/graphql_deno@v15.0.0/lib/utilities/index.d.ts";

Extracts the root type of the operation from the schema.

Parameters

schema: GraphQLSchema
operation: OperationDefinitionNode | OperationTypeDefinitionNode

Returns

GraphQLObjectType