matterandvoid-space / subscriptions

A subscriptions library over a source of data (forked + extracted from re-frame)
Other
50 stars 1 forks source link

add xform on attributes in eql #27

Closed dvingo closed 1 year ago

dvingo commented 1 year ago

Fixes for EQL support with datalevin and xtdb

Add xform support for plain attributes in addition to in recursive position.

Instead of returning ::missing-val or nil when an attribute isn't present, do not include it in the output. This is aligned with datomic pull semantics: https://docs.datomic.com/on-prem/query/pull.html#missing-attributes

In the absence of a default, attribute specifications that do not match an entity are omitted from that entity's result map, rather than e.g. appearing with a nil value.