Fork me on GitHub
#datomic
<
2018-09-29
>
Drew Verlee02:09:25

Is there anything that can take the Grammer https://docs.datomic.com/on-prem/query.html#sec-4-1 and tell you given an example, how the data corresponds to the symbols in the data?

Joe R. Smith11:09:43

@misha I avoid explicit entity “type” attributes. Oftentimes an entity can be of many “types”, e.g., an entity may have a :customer/orders attribute, meaning it is a customer that has placed orders and :twitter/id attribute meaning it is a twitter user. A query, containing, [?e :twitter/id ?twitter-id] … and returning ?e is about entities in the database of “type” twitter user.