Skip to content

Instantly share code, notes, and snippets.

@mprokopov
Created April 2, 2021 17:29
Show Gist options
  • Save mprokopov/a19b15fd3797054b7ed21633e31c505e to your computer and use it in GitHub Desktop.
Save mprokopov/a19b15fd3797054b7ed21633e31c505e to your computer and use it in GitHub Desktop.
datomic datafy
(extend-protocol clojure.core.protocols/Datafiable
datomic.query.EntityMap
(datafy [o] (into {} o)))
(extend-protocol clojure.core.protocols/Navigable
datomic.query.EntityMap
(nav [coll k v]
(clojure.datafy/datafy v)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment