absinthe.execute.operation.exception
An Absinthe GraphQL operation raised an exception. Uses the same fields as absinthe.execute.operation.stop.
Fields
8| Field | Type | Description |
|---|---|---|
event_type | string | Allowed value: absinthe.execute.operation.exception. |
operation_name | string | Named operation from the GraphQL query, if present. |
operation_type | string | Operation type: "query", "mutation", or "subscription". |
selections | array<string> | Top-level field names selected in the operation. |
schema | string | Absinthe schema module name. |
errors | array<object> | GraphQL errors returned in the result, if any. |
duration | number | Duration in microseconds before the exception was raised. |
request_id | string | Request ID from the current EventContext. |
Example
{ "event_type": "absinthe.execute.operation.exception", "operation_name": "CreateUser", "operation_type": "mutation", "selections": [ "createUser" ], "schema": "Elixir.MyAppWeb.Schema", "errors": [ { "message": "An unexpected error occurred", "path": [ "createUser" ] } ], "duration": 12000, "request_id": "F8ZBOg1zcBQDqDgAAADx"}