Skip to main content

layer_apps

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

Overview

Namelayer_apps
TypeResource
Iddeno.layers.layer_apps

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstring (uuid)Unique app identifier (UUID)
layer_positionintegerIndex of this layer in the app's layers array
slugstringHuman-readable app slug. App slugs must be 3–32 characters long, may contain only lowercase letters, numbers, and hyphens, cannot contain underscores, must not start or end with a hyphen, must not have consecutive hyphens in positions 3 and 4, and cannot be a reserved slug.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectlayercursor, limitList apps that reference this layer.<br /><br />The layer_position indicates the index in each app's layers array.

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
layerstringLayer ID or slug. Slugs cannot contain underscores; IDs always do.
cursorstringThe pagination cursor
limitintegerThe maximum number of items to return

SELECT examples

List apps that reference this layer.<br /><br />The layer_position indicates the index in each app's layers array.

SELECT
id,
layer_position,
slug
FROM deno.layers.layer_apps
WHERE layer = '{{ layer }}' -- required
AND cursor = '{{ cursor }}'
AND limit = '{{ limit }}'
;