OperationDefinition class

An Operation consists of an optional operation name and a SelectionSet into one of the root OperationTypeDefinitions.

There are three types of operations:

  • query – a read‐only fetch.
  • mutation – a write followed by a fetch.
  • subscription – a long‐lived request that fetches data in response to source events.
Inheritance
Annotations
  • @immutable

Constructors

OperationDefinition(OperationDefinitionNode astNode, [GetExecutableType? getType])
const

Properties

astNode OperationDefinitionNode
final
getType GetExecutableType
finalinherited
hashCode int
The hash code for this object.
no setterinherited
name String?
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
schemaType ObjectTypeDefinition?
no setter
selectionSet SelectionSet
no setter
type OperationType
no setter
variables List<VariableDefinition>
no setter

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 o) bool
The equality operator.
inherited