layer_apps
Creates, updates, deletes, gets or lists a layer_apps resource.
Overview
| Name | layer_apps |
| Type | Resource |
| Id | deno.layers.layer_apps |
Fields
The following fields are returned by SELECT queries:
- list
| Name | Datatype | Description |
|---|---|---|
id | string (uuid) | Unique app identifier (UUID) |
layer_position | integer | Index of this layer in the app's layers array |
slug | string | Human-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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | layer | cursor, limit | List 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.
| Name | Datatype | Description |
|---|---|---|
layer | string | Layer ID or slug. Slugs cannot contain underscores; IDs always do. |
cursor | string | The pagination cursor |
limit | integer | The maximum number of items to return |
SELECT examples
- list
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 }}'
;