datascript

Immutable database and Datalog query engine for Clojure, ClojureScript and JS
2018-06-30T22:15:25.000011Z

How do I resolve a lookup ref to an id outside of a query in datascript? I'd have assumed it's something like the following

(d/entity db '[:unique/name foo])
but the API seems to be different