Skip to main content
Latest
class TypeInfo
import { TypeInfo } from "https://deno.land/x/graphql_deno@v15.0.0/lib/utilities/index.d.ts";

TypeInfo is a utility class which, given a GraphQL schema, can keep track of the current field and type definitions at any point in a GraphQL document AST during a recursive descent by calling enter(node) and leave(node).

Constructors

new
TypeInfo(
schema: GraphQLSchema,
getFieldDefFn?: getFieldDef,
initialType?: GraphQLType,
)

Methods

enter(node: ASTNode): any
getArgument(): Maybe<GraphQLArgument>
getDefaultValue(): Maybe<any>
getDirective(): Maybe<GraphQLDirective>
getEnumValue(): Maybe<GraphQLEnumValue>
getFieldDef(): GraphQLField<any, Maybe<any>>
getInputType(): Maybe<GraphQLInputType>
getParentInputType(): Maybe<GraphQLInputType>
getParentType(): Maybe<GraphQLCompositeType>
getType(): Maybe<GraphQLOutputType>
leave(node: ASTNode): any