Skip to Content
GraphQL Tools
DocumentationAPI@graphql-tools/utilssrcfunctionsgetDefinedRootType

Function: getDefinedRootType()

getDefinedRootType(schema, operation, nodes?): GraphQLObjectType

Defined in: packages/utils/src/rootTypes.ts:5

Parameters

schema

GraphQLSchema

operation

OperationTypeNode

nodes?

ASTNode[]

Returns

GraphQLObjectType