Repository navigation
Release v4.204.0
Read models can now have a composite key made of several key properties, and such models bind and run in the executable model.
Added
- Read models with two or more
keyproperties bind and execute: projections key rootfromblocks with akeyblock naming every part, list queries narrow them with equality filters, and an optional single-instance query looks one up with abyblock naming every part. Models that use them select ESM v27; every other model keeps its version and bytes. See decision 0088. (#599) remove withaccepts akeyblock with onepart = exprline per key part, so a composite-keyed instance can be removed and later recreated. (#599)- Specifications state every key part in
given readmodel,then readmodelandthen no readmodel, and query arguments supply everybypart; a missing part is reported as PLAY0661 and an unknown or ill-typed part as PLAY0662. (#599)
Changed
- Joins, children,
remove via join,every,all,nested,clear with,variantand reducers on a composite-keyed read model, and list queries with abyblock over one, are refused with PLAY0268 instead of the whole read model being refused. (#599)