Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/drash/src/services/graphql/deps.ts>GraphQL.GraphQLDirective

A microframework for Deno's HTTP server with zero third-party dependencies
Go to Latest
class GraphQL.GraphQLDirective
import { GraphQL } from "https://deno.land/x/drash@v2.8.1/src/services/graphql/deps.ts";
const { GraphQLDirective } = GraphQL;

Directives are used by the GraphQL runtime as a way of modifying execution behavior. Type system creators will usually not create these directly.

Constructors

new
GraphQLDirective(config: Readonly<GraphQLDirectiveConfig>)

Properties

args: Array<GraphQLArgument>
astNode: Maybe<DirectiveDefinitionNode>
description: Maybe<string>
extensions: Maybe<Readonly<GraphQLDirectiveExtensions>>
isRepeatable: boolean
locations: Array<DirectiveLocationEnum>
name: string

Methods

inspect(): string
toConfig(): GraphQLDirectiveConfig & { args: GraphQLFieldConfigArgumentMap; isRepeatable: boolean; extensions: Maybe<Readonly<GraphQLDirectiveExtensions>>; }
toJSON(): string
toString(): string