project_groups
Creates, updates, deletes, gets or lists a project_groups resource.
Overview​
| Name | project_groups |
| Type | Resource |
| Id | railway.projects.project_groups |
Fields​
The following fields are returned by SELECT queries:
- list
One row per Group.
| Name | Datatype | Description |
|---|---|---|
id | string | |
name | string | |
group_id | string | |
project_id | string | |
color | string | |
icon | string | |
is_collapsed | boolean | |
project | object | Project object |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | project_id | Lists Group objects of a Project. Backed by the Railway GraphQL query project.groups. |
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 |
|---|---|---|
project_id | string |
SELECT examples​
- list
Lists Group objects of a Project. Backed by the Railway GraphQL query project.groups.
SELECT
id,
name,
group_id,
project_id,
color,
icon,
is_collapsed,
project
FROM railway.projects.project_groups
WHERE project_id = '{{ project_id }}' -- required
;