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.
| Recipe | Solves |
|---|---|
| A CRUD resource | Entity, read/create/update/query shapes, five operations, HTTP |
| Properties, enums and validation | Reusable value types, constraints, enums, unions, optional and array fields |
| Relations between schemas | Foreign keys, cardinality, delete behaviour |
| Policies and access | Authentication, rules, scope policies |
| Scoped operations | Constrain records to a tenant or owner |
| Events and workflows | Events, failures and who listens |
| Storage and projections | Storage facets, indexes, derived shapes |