Created
March 30, 2018 15:03
-
-
Save dimovich/777479b8fa4f1fff9e624d50ea1bff6c to your computer and use it in GitHub Desktop.
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
(d/pull-many db '[*] | |
(apply sorted-set | |
(concat | |
(d/q '[:find [?e ...] | |
:in [?tag ...] $ | |
:where | |
[?e :tags ?tag]] | |
search-tags | |
db) | |
(d/q '[:find [?e ...] | |
:in [?tag ...] $ | |
:where | |
[?e :name ?tag]] | |
(map clojure.string/capitalize search-tags) | |
db)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment