GraphqlError
import type { GraphqlError } from "https://googleapis.deno.dev/v1/firebasedataconnect:v1.ts";
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.
§Properties
Additional error information.
The source locations where the error occurred. Locations should help
developers and toolings identify the source of error quickly. Included in
admin endpoints (ExecuteGraphql
, ExecuteGraphqlRead
, UpdateSchema
and
UpdateConnector
) to reference the provided GraphQL GQL document. Omitted
in ExecuteMutation
and ExecuteQuery
since the caller shouldn't have
access access the underlying GQL source.