GraphQLResponse<T> class

Encapsulates a GraphQL query/mutation response from server, with typed input and responses, and errors.

Constructors

GraphQLResponse({T? data, List<GraphQLError>? errors, Context? context})
Instantiates a GraphQL response.
const

Properties

context → Context?
The Context of the Response
final
data → T?
The typed data of this response.
final
errors → List<GraphQLError>?
The list of errors in this response.
final
hasErrors → bool
If this response has any error.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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