MutationOptions class

Constructors

MutationOptions({DocumentNode document, @Deprecated('Use `document` instead. Will be removed in 5.0.0') DocumentNode documentNode, String operationName, Map<String, dynamic> variables = const {}, FetchPolicy fetchPolicy, ErrorPolicy errorPolicy, CacheRereadPolicy cacheRereadPolicy, Context context, Object optimisticResult, OnMutationCompleted onCompleted, OnMutationUpdate update, OnError onError})

Properties

asRequest Request
Resolve these options into a request
read-only, inherited
cacheRereadPolicy CacheRereadPolicy
read-only, inherited
context Context
Context to be passed to link execution chain.
read / write, inherited
document DocumentNode
Document containing at least one OperationDefinitionNode
read / write, inherited
errorPolicy ErrorPolicy
read-only, inherited
fetchPolicy FetchPolicy
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
isMutation bool
read-only, inherited
isQuery bool
read-only, inherited
isSubscription bool
read-only, inherited
onCompleted OnMutationCompleted
final
onError OnError
final
operationName String
Name of the executable definition [...]
read / write, inherited
optimisticResult Object
An optimistic result to eagerly add to the operation stream
read / write, inherited
policies Policies
Specifies the Policies to be used during execution.
read / write, inherited
properties List<Object>
identifying properties for the inheriting class
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type OperationType
read-only, inherited
update OnMutationUpdate
final
variables Map<String, dynamic>
A map going from variable name to variable value, where the variables are used within the GraphQL query.
read / write, inherited

Methods

equal(MutableDataClass other) bool
properties based deep equality check
inherited
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 other) bool
The equality operator. [...]
inherited