Queries/mutations split (reads-writes duality)
Generated from
mcp/patterns.registry.json— do not edit by hand; change the registry and runbun run patterns:build.
Index card — the docs below are the canonical explanation; deep-tier pattern pages additionally carry invariants and emulation notes.
Category: Databases & Storage · Tier: light · Risk: low — code organization pattern, no external dependency
Splits each domain's database access into separate queries.ts (reads) and mutations.ts (writes) modules.
When to use: Apply when structuring a new domain's database layer so reads and writes stay independently reusable across UI, API, and job clients.
Docs
Code
Proof
Machine-readable record: databases-queries-mutations-split in mcp/patterns.registry.json.