OperationRequest<TData, TVars> class abstract interface

Implementers

Constructors

OperationRequest()

Properties

context → Context?
The Context to be passed to links.
no setter
execRequest → Request
no setter
executeOnListen bool
If set to true, this request will be automatically added to the request controller when the stream returned by request() is listened to
no setter
fetchPolicy FetchPolicy?
The FetchPolicy to be used when executing this operation
no setter
hashCode int
The hash code for this object.
no setterinherited
operation → Operation
no setter
optimisticResponse → TData?
The optimistic result, generally used when running a mutation
no setter
requestId String?
The unique identifier for this request.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
updateCacheHandlerContext Map<String, dynamic>?
An arbitrary JSON object that can be used to pass data to the UpdateCacheHandler
no setter
updateCacheHandlerKey String?
The key that maps to a UpdateCacheHandler, defined on the client
no setter
updateResult → (TData? Function(TData? previousResult, TData? result)?)
Optional function to update the result based on the previous result. Useful for pagination.
no setter
vars → TVars
no setter

Methods

dataToJson(TData data) Map<String, dynamic>
Serializes data into a JSON object This is a simple wrapper on the toJson method on the data class
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseData(Map<String, dynamic> json) → TData?
Parses data into a concrete type for the given operation
toString() String
A string representation of this object.
inherited
transformOperation(Operation transform(Operation)) OperationRequest<TData, TVars>
varsToJson() Map<String, dynamic>
Serializes variables into a JSON object This is a simple wrapper on the toJson method on the variables class

Operators

operator ==(Object other) bool
The equality operator.
inherited