OperationDefinition class Null safety

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

Constructors

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

Properties

astNode OperationDefinitionNode
final
getType GetExecutableType
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
name String?
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
schemaType ObjectTypeDefinition?
read-only
selectionSet SelectionSet
read-only
type OperationType
read-only
variables List<VariableDefinition>
read-only

Methods

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

Operators

operator ==(Object o) bool
The equality operator. [...]
inherited