GraphQLDirective class

Provides documentation, information or functionalities over different aspects of a GraphQL parsing, validation, execution or interpretation of a GraphQLSchema

Implemented types

Constructors

GraphQLDirective({required String name, String? description, required List<DirectiveLocation> locations, List<GraphQLFieldInput> inputs = const [], bool isRepeatable = false, GraphQLAttachments attachments = const [], DirectiveDefinitionNode? astNode})
Default GraphQL directive definition constructor

Properties

astNode → DirectiveDefinitionNode?
If this was parsed from an ast, the node in that ast
final
attachments GraphQLAttachments
Other custom values that may modify the execution, validation or introspection for this element
final
description String?
Provides documentation for this directive
final
hashCode int
The hash code for this object.
no setterinherited
inputs List<GraphQLFieldInput>
The input arguments for this directive
final
isRepeatable bool
Whether this directive can be applied multiple types
final
locations List<DirectiveLocation>
The places the a GraphQL document where this directive can be used
final
name String
The name of this directive, should be unique
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

specifiedDirectives List<GraphQLDirective>
Default GraphQL directives
final