Skip to main content

TypeInfo

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).

Index

Constructors

constructor

  • Parameters

    • schema: GraphQLSchema
    • optionalinitialType: Maybe<GraphQLType>

      Initial type may be provided in rare cases to facilitate traversals beginning somewhere other than documents.

    • optionalgetFieldDefFn: GetFieldDefFn
      @deprecated

      will be removed in 17.0.0

    Returns TypeInfo

Accessors

[toStringTag]

  • get [toStringTag](): string
  • Returns string

Methods

enter

  • Parameters

    Returns void

getArgument

getDefaultValue

  • getDefaultValue(): unknown
  • Returns unknown

getDirective

getEnumValue

getFieldDef

getInputType

getParentInputType

getParentType

getType

leave

  • Parameters

    Returns void