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.
optionalfragmentSignatures: Maybe<(fragmentName: string) => Maybe<FragmentSignature>>
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>>
getFragmentArgument
Returns Maybe<VariableDefinitionNode>
getFragmentSignature
Returns Maybe<FragmentSignature>
getFragmentSignatureByName
Returns (fragmentName: string) => Maybe<FragmentSignature>
Parameters
fragmentName: string
Returns Maybe<FragmentSignature>
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)
.