Created
April 2, 2021 17:29
-
-
Save mprokopov/a19b15fd3797054b7ed21633e31c505e to your computer and use it in GitHub Desktop.
datomic datafy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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