Created
January 17, 2014 18:27
-
-
Save bonkydog/8478795 to your computer and use it in GitHub Desktop.
Query for Datomic attribute types. Shows use of anonymous function literal in query.
This file contains hidden or 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
| d.q('[:find ?e ?ident ?doc | |
| :where | |
| [?e :db/doc ?doc] | |
| [?e :db/ident ?ident] | |
| [(#(clojure.core/re-find #"db.type" (str %)) ?ident)] | |
| ]') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment