Skip to main content
Latest
class TypeInfo
import { TypeInfo } from "https://deno.land/x/kilatgraphql@16.6.0-1/mod.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,
initialType?: Maybe<GraphQLType>,
getFieldDefFn?: GetFieldDefFn,
)

Properties

private
_argument
private
_defaultValueStack
private
_directive
private
_enumValue
private
_fieldDefStack
private
_getFieldDef
private
_inputTypeStack
private
_parentTypeStack
private
_schema
private
_typeStack
readonly
[Symbol.toStringTag]: string