Last active
October 12, 2019 14:22
-
-
Save dark4eg/2e7d0d5f4d1581538332270a5c4f96fa 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 (d/db conn) | |
[:user/name | |
:user/login | |
:user/email] | |
1234567890) | |
=> #:user{:name "A B", :login "a.b", :email "a.b@gmail.com"} | |
(d/q '[:find [?e] | |
:where [?e :user/login "a.b"]] | |
(d/db conn)) | |
#{} | |
(d/q '[:find [?e] | |
:where [?e :user/email "a.b@gmail.com"]] | |
(d/db conn)) | |
#{} | |
(d/q '[:find [?e] | |
:where [?e :user/name "A B"]] | |
(d/db conn)) | |
=> [17592186045422] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment