Authorization
header (-H "Authorization: INSERT_API_KEY"
). We do not require Bearer
to precede the API Key.query
in the JSON payload needs to be a string containing the GraphQL operation. Here’s an example:
error.response.status
field for SDK requests.Place | Field | Type |
---|---|---|
cURL / Direct | errors | Array |
SDKs | error | Object (Typed Exception) |
onError
argument with an async function when initializing the client in order to globally take actions when errors occur. The following example logs all errors upon one occurring:
SubscriptionError
SubscriptionNotFoundError
PackageNotFoundError
FeatureNotFoundError
UserNotFoundError
AuthenticationError
NetworkError
Error
NetworkError
occurs with no backoff or delay. You can override this behaviour with the retry
argument: