TypeInfo
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
Returns TypeInfo
Accessors
[toStringTag]
Returns string
Methods
enter
Parameters
node: ASTNode
Returns void
getArgument
Returns Maybe<GraphQLArgument>
getDefaultValue
Returns unknown
getDirective
Returns Maybe<GraphQLDirective>
getEnumValue
Returns Maybe<GraphQLEnumValue>
getFieldDef
Returns Maybe<GraphQLField<unknown, unknown, any>>
getInputType
Returns Maybe<GraphQLInputType>
getParentInputType
Returns Maybe<GraphQLInputType>
getParentType
Returns Maybe<GraphQLCompositeType>
getType
Returns Maybe<GraphQLOutputType>
leave
Parameters
node: ASTNode
Returns void
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)
andleave(node)
.