Skip to main content

GraphQLDirective

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

Implements

  • GraphQLSchemaElement

Index

Constructors

constructor

Properties

args

args: readonly GraphQLArgument[]

astNode

astNode: Maybe<DirectiveDefinitionNode>

description

description: Maybe<string>

extensions

extensions: Readonly<GraphQLDirectiveExtensions>

isRepeatable

isRepeatable: boolean

locations

locations: readonly DirectiveLocation[]

name

name: string

Accessors

[toStringTag]

  • get [toStringTag](): string
  • Returns string

Methods

toConfig

  • toConfig(): GraphQLDirectiveNormalizedConfig
  • Returns GraphQLDirectiveNormalizedConfig

toJSON

  • toJSON(): string
  • Returns string

toString

  • toString(): string
  • Returns string