Created
January 17, 2017 19:40
-
-
Save jdkealy/50b1e64f27f5973054b0ce99c313de95 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/q '[:find ?e ?email | |
:in $ ?ent | |
:where | |
[?e :permission/ent ?ent] | |
(or | |
(and | |
[?e :permission/user ?user] | |
[?user :user/email ?email]) | |
[?user :permission/email ?email])] | |
_db id) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment