ValidaAttachment class
A GraphQL attachment which specifies a valida annotation in a GraphQLElement for validating input and outputs. Presented as a directive directiveDefinition in the GraphQL schema.
In code generation use AttachFn or the valida annotations.
- Implemented types
Constructors
- ValidaAttachment(dynamic annotation)
-
A GraphQL attachment which specifies a valida annotation
in a GraphQLElement for validating input and outputs.
Presented as a directive directiveDefinition in the GraphQL schema.
const
Properties
- annotation → dynamic
-
The valida spec as json
final
- directiveDefinition → GraphQLDirective
-
The directive definition of the directiveValue
no setteroverride
- directiveValue → DirectiveNode
-
The directive value represented by this object
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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.
override
-
validateElement(
SchemaValidationContext context, GraphQLElement element) → void -
Validates the provided
element
following the configuration of this attachmentoverride
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited