GraphqlError class

GraphqlError conforms to the GraphQL error spec.

https://spec.graphql.org/draft/#sec-Errors Firebase Data Connect API surfaces GraphqlError in various APIs: - Upon compile error, UpdateSchema and UpdateConnector return Code.Invalid_Argument with a list of GraphqlError in error details. - Upon query compile error, ExecuteGraphql and ExecuteGraphqlRead return Code.OK with a list of GraphqlError in response body. - Upon query execution error, ExecuteGraphql, ExecuteGraphqlRead, ExecuteMutation and ExecuteQuery all return Code.OK with a list of GraphqlError in response body.

Constructors

GraphqlError.new({GraphqlErrorExtensions? extensions, List<SourceLocation>? locations, String? message, List<Object?>? path})
GraphqlError.fromJson(Map json_)

Properties

extensions GraphqlErrorExtensions?
Additional error information.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
locations List<SourceLocation>?
The source locations where the error occurred.
getter/setter pair
message String?
The detailed error message.
getter/setter pair
path List<Object?>?
The result field which could not be populated due to error.
getter/setter pair
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
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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