Cookbook

Each recipe states a problem, shows code that compiles with @dryvcode/author, and explains why. The patterns come from the maintained core-journey example project in the repository (sdk/_examples/projects/core-journey), which is generated and tested end to end.

RecipeSolves
A CRUD resourceEntity, read/create/update/query shapes, five operations, HTTP
Properties, enums and validationReusable value types, constraints, enums, unions, optional and array fields
Relations between schemasForeign keys, cardinality, delete behaviour
Policies and accessAuthentication, rules, scope policies
Scoped operationsConstrain records to a tenant or owner
Events and workflowsEvents, failures and who listens
Storage and projectionsStorage facets, indexes, derived shapes
Search in