Skip to main content
Module

x/guardenoql/deps.ts>ValidationContext

Simple and customizable security middleware for GraphQL servers in Deno.
class ValidationContext
extends ASTValidationContext
import { ValidationContext } from "https://deno.land/x/guardenoql@v1.0.1/deps.ts";

Constructors

new
ValidationContext(
schema: GraphQLSchema,
typeInfo: TypeInfo,
onError: (err: GraphQLError) => void,
)

Methods

getArgument(): Maybe<GraphQLArgument>
getDirective(): Maybe<GraphQLDirective>
getFieldDef(): Maybe<GraphQLField<any, any>>
getInputType(): Maybe<GraphQLInputType>
getParentInputType(): Maybe<GraphQLInputType>
getParentType(): Maybe<GraphQLCompositeType>
getRecursivelyReferencedFragments(operation: OperationDefinitionNode): ReadonlyArray<FragmentDefinitionNode>
getType(): Maybe<GraphQLOutputType>
getVariableUsages(node: NodeWithSelectionSet): ReadonlyArray<VariableUsage>