Skip to main content

template_services

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

Overview​

Nametemplate_services
TypeResource
Idrailway.templates.template_services

Fields​

The following fields are returned by SELECT queries:

One row per TemplateService.

NameDatatypeDescription
idstring
template_idstring
configobject
created_atstring (date-time)
updated_atstring (date-time)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectcodetemplate_id, owner, repoLists TemplateService objects of a Template. Backed by the Railway GraphQL query template.services.

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
codestring
ownerstring
repostring
template_idstring

SELECT examples​

Lists TemplateService objects of a Template. Backed by the Railway GraphQL query template.services.

SELECT
id,
template_id,
config,
created_at,
updated_at
FROM railway.templates.template_services
WHERE code = '{{ code }}' -- required
AND template_id = '{{ template_id }}'
AND owner = '{{ owner }}'
AND repo = '{{ repo }}'
;