Defining an action
Actions have a signature defining inputs and the return type.Data access
SLang provides high-level keywords for querying data.Fetching a single record (single)
Use single when you expect exactly one result (e.g., looking up by ID). It throws an error (404 in HTTP context) if the record is not found.
Fetching lists (pageOf)
Use pageOf to retrieve paginated lists of data matching a condition.
Modifying data
Creating records
Updating records
Control flow
Loops
Iterate over collections returned bypageOf.