Datomic Pull API by Stuart Holloway.
From the post:
Datomic‘s new Pull API is a declarative way to make hierarchical selections of information about entities. You supply a pattern to specify which attributes of the entity (and nested entities) you want to
pull
, anddb.pull
returns amap
for each entity.Pull API vs. Entity API
The Pull API has two important advantages over the existing Entity API:
Pull uses a declarative, data-driven spec, whereas Entity encourages building results via code. Data-driven specs are easier to build, compose, transmit and store. Pull patterns are smaller than entity code that does the same job, and can be easier to understand and maintain.
Pull API results match standard collection interfaces (e.g. Java maps) in programming languages, where Entity results do not. This eliminates the need for an additional allocation/transformation step per entity.
…
A sign that it is time to catch up on what has been happening with Datomic!