Skip to main content

project_groups

Creates, updates, deletes, gets or lists a project_groups resource.

Overview​

Nameproject_groups
TypeResource
Idrailway.projects.project_groups

Fields​

The following fields are returned by SELECT queries:

One row per Group.

NameDatatypeDescription
idstring
namestring
group_idstring
project_idstring
colorstring
iconstring
is_collapsedboolean
projectobjectProject object

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectproject_idLists 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.

NameDatatypeDescription
project_idstring

SELECT examples​

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
;