FetchMoreOptions class

options for fetchMore operations

NOTE: with the addition of strict data structure checking in v4, it is easy to make mistakes in writing updateQuery.

To mitigate this, FetchMoreOptions.partial has been provided.

Annotations
  • @immutable

Constructors

FetchMoreOptions({DocumentNode? document, Map<String, dynamic> variables = const {}, required UpdateQuery updateQuery})

Properties

document → DocumentNode?
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
updateQuery UpdateQuery
Strategy for merging the fetchMore result data with the result data already in the cache
final
variables Map<String, dynamic>
final

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 Methods

partial({DocumentNode? document, Map<String, dynamic> variables = const {}, required UpdateQuery updateQuery}) FetchMoreOptions
Automatically merge the results of updateQuery into previousResultData.
partialUpdater(UpdateQuery update) UpdateQuery
Wrap an UpdateQuery in a deeplyMergeLeft of the previousResultData.