Skip to content

Instantly share code, notes, and snippets.

@jdkealy
Created January 17, 2017 19:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdkealy/50b1e64f27f5973054b0ce99c313de95 to your computer and use it in GitHub Desktop.
Save jdkealy/50b1e64f27f5973054b0ce99c313de95 to your computer and use it in GitHub Desktop.
(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