Skip to main content

template_search

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

Overview​

Nametemplate_search
TypeResource
Idrailway.templates.template_search

Fields​

The following fields are returned by SELECT queries:

One row per TemplateSearchResult.

NameDatatypeDescription
idstring
namestring
creator_namestring
codestring
deployment_countinteger
descriptionstring
health_scorenumber
imagestring
is_verifiedboolean

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectquerycategory, verifiedSearch published templates using the backend-ranked template search index. Backed by the Railway GraphQL query templateSearch.

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
querystringSearch term to filter templates. Empty query returns browse-style results.
categorystringIf set, only templates in this category will be returned.
verifiedbooleanIf set, only templates matching this verification state will be returned.

SELECT examples​

Search published templates using the backend-ranked template search index. Backed by the Railway GraphQL query templateSearch.

SELECT
id,
name,
creator_name,
code,
deployment_count,
description,
health_score,
image,
is_verified
FROM railway.templates.template_search
WHERE query = '{{ query }}' -- required
AND category = '{{ category }}'
AND verified = '{{ verified }}'
;