A_action
Returns action state. Returns NULL
if action is not started yet or 24 hours passed after initiated.
NEW
: Action started and is being processedCOMPLETED
: Action successful, changes made to Eneba systemFAILED
: Action unsuccessful, no changes made to Eneba system
Actions are available for 24 hours since created. Later entries will be deleted.
Supported arguments
The following arguments are supported by A_action query:
Field | Type | Description |
---|---|---|
actionId | A_Uuid! | The ID of the action |
Return type
The query returns theA_Action
type.
Example usage
Query
In the following query we are querying for a result of a particular action (actionId
).
query {
A_action(actionId: "e7f93c26-4a2d-11ed-90aa-4ae14ace4c13") {
id
state
}
}
Result
Here we have got the response, it says that our action is COMPLETED
and changes are persisted to the system.
{
"data": {
"A_action": {
"id": "e7f93c26-4a2d-11ed-90aa-4ae14ace4c13",
"state": "COMPLETED"
}
}
}