Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
; the query
(d/q '[:find ?price ?pt ?type
:in $ $shard ?cid ?type
[$shard ?e :content/collection ?coll]
[$shard ?e :content/price_tier ?pt]
[$shard ?coll :collection/organization ?user]
[$ ?user :user/prices ?p]
[$ ?p :price/price ?price]
[$ ?p :price/type ?type]
[$ ?p :price/tier ?pt]]
_db _shard id usage)
; the inputs
db1 db2 17592186045769 :print
; the result
[[600.0 2 :print], [400.0 1 :print], [800.0 3 :print]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.