Skip to main content
Module

x/bq-oak-graphql/graphql-tools/utils/index.ts>SchemaDirectiveVisitor

A simple graphql middleware for oak deno framework.
Latest
class SchemaDirectiveVisitor
extends SchemaVisitor
import { SchemaDirectiveVisitor } from "https://deno.land/x/bq-oak-graphql@v2.0/graphql-tools/utils/index.ts";

Constructors

new
protected
SchemaDirectiveVisitor(config: { name: string; args: TArgs; visitedType: VisitableSchemaType; schema: any; context: TContext; })

Type Parameters

optional
TArgs = any
optional
TContext = any

Properties

args: TArgs
context: TContext
name: string
visitedType: VisitableSchemaType

Static Methods

protected
getDeclaredDirectives(schema: any, directiveVisitors: Record<string, SchemaDirectiveVisitorClass>): Record<string, any>
getDirectiveDeclaration(directiveName: string, schema: any): any | null | undefined
visitSchemaDirectives(
schema: any,
directiveVisitors: Record<string, SchemaDirectiveVisitorClass>,
context?: Record<string, any>,
): Record<string, Array<SchemaDirectiveVisitor>>