Skip to content

Instantly share code, notes, and snippets.

@zendevil
Created March 28, 2021 01:53
Show Gist options
  • Save zendevil/4d0f1a844208ceb01375c686eec1f930 to your computer and use it in GitHub Desktop.
Save zendevil/4d0f1a844208ceb01375c686eec1f930 to your computer and use it in GitHub Desktop.
query
(->> (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