environment_pending_work
Creates, updates, deletes, gets or lists an environment_pending_work resource.
Overview​
| Name | environment_pending_work |
| Type | Resource |
| Id | railway.environments.environment_pending_work |
Fields​
The following fields are returned by SELECT queries:
- list
One row per ProjectOperation.
| Name | Datatype | Description |
|---|---|---|
id | string | |
environment_id | string | |
workflow_id | string | |
actor | object | ProjectOperationActor object |
changes | object | |
finished_at | string (date-time) | |
kind | string | |
parent_ref | string | |
started_at | string (date-time) | |
status | string | (applied, applying, failed, staged) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | environment_id | Pending project-mutating work for an environment. Unions registered OperationSources (patches, standalone deploys) and returns parent rows only — not a stored inbox. Backed by the Railway GraphQL query environmentPendingWork. |
Parameters​
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
environment_id | string |
SELECT examples​
- list
Pending project-mutating work for an environment. Unions registered OperationSources (patches, standalone deploys) and returns parent rows only — not a stored inbox. Backed by the Railway GraphQL query environmentPendingWork.
SELECT
id,
environment_id,
workflow_id,
actor,
changes,
finished_at,
kind,
parent_ref,
started_at,
status
FROM railway.environments.environment_pending_work
WHERE environment_id = '{{ environment_id }}' -- required
;