ValidationContext
Hierarchy
- ASTValidationContext
- ValidationContext
Index
Constructors
Accessors
Methods
Constructors
constructor
Parameters
schema: GraphQLSchema
ast: DocumentNode
typeInfo: TypeInfo
onError: (error: GraphQLError) => void
Returns ValidationContext
Accessors
[toStringTag]
Returns string
Methods
getArgument
Returns Maybe<GraphQLArgument>
getDirective
Returns Maybe<GraphQLDirective>
getDocument
Returns DocumentNode
getEnumValue
Returns Maybe<GraphQLEnumValue>
getFieldDef
Returns Maybe<GraphQLField<unknown, unknown, any>>
getFragment
Parameters
name: string
Returns Maybe<FragmentDefinitionNode>
getFragmentSignature
Returns Maybe<FragmentSignature>
getFragmentSignatureByName
Returns (fragmentName: string) => Maybe<FragmentSignature>
Parameters
fragmentName: string
Returns Maybe<FragmentSignature>
getFragmentSpreads
Parameters
node: SelectionSetNode
Returns readonly FragmentSpreadNode[]
getInputType
Returns Maybe<GraphQLInputType>
getParentInputType
Returns Maybe<GraphQLInputType>
getParentType
Returns Maybe<GraphQLCompositeType>
getRecursiveVariableUsages
Parameters
operation: OperationDefinitionNode
Returns readonly VariableUsage[]
getRecursivelyReferencedFragments
Parameters
operation: OperationDefinitionNode
Returns readonly FragmentDefinitionNode[]
getSchema
Returns GraphQLSchema
getType
Returns Maybe<GraphQLOutputType>
getVariableUsages
Parameters
node: NodeWithSelectionSet
Returns readonly VariableUsage[]
reportError
Parameters
error: GraphQLError
Returns void