GraphQLResponse<T> class

A GraphQL response from the server. See https://graphql.org/learn/serving-over-http/#response

Constructors

GraphQLResponse({T? data, required List<GraphQLResponseError> errors})
const

Properties

data → T?
Response data matching the type of the request.
final
errors List<GraphQLResponseError>
A list of errors from execution. If no errors, it will be an empty list.
final
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

Static Methods

raw({required String? data, List<GraphQLResponseError>? errors}) GraphQLResponse<String?>