QueryRequest<T> class

Constructors

QueryRequest({Operation operation, Map<String, dynamic> variables, String queryId, T updateResult(T previousResult, T result), Map<String, dynamic> optimisticResponse, dynamic updateCacheHandlerKey, Map<String, dynamic> context, FetchPolicy fetchPolicy})

Properties

context Map<String, dynamic>
An arbitrary object (must be JSON serializable) to pass data that can be used in UpdateCacheHandlers or updateResult.
final
fetchPolicy FetchPolicy
final
operation Operation
The GraphQL Query, Mutation, or Subscription to execute.
read / write
optimisticResponse Map<String, dynamic>
The optimistic result, generally used when running a mutation
final
queryId String
The unique identifier for this query. [...]
final
updateCacheHandlerKey → dynamic
The key that maps to a UpdateCacheHandler, defined on the client
final
updateResult → T Function(T previousResult, T result)
Optional function to update the result based on the previous result. Useful for pagination.
final
variables Map<String, dynamic>
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

parseData(Map<String, dynamic> json) → T
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited