Created
March 28, 2021 01:53
-
-
Save zendevil/4d0f1a844208ceb01375c686eec1f930 to your computer and use it in GitHub Desktop.
query
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 (pull ?content [*]) | |
:in $ ?user-id-string | |
:where | |
[?user-id :user/id-string ?user-id-string] | |
[?content :content/user ?user-id] | |
(not [?content :content/deleted true]) | |
] (get-db) user-id-string) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment