ValidationContext
Hierarchy
- ASTValidationContext
- ValidationContext
Index
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>
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