sixthnormal / clj-3df

Clojure(Script) client for Declarative Dataflow.
Eclipse Public License 2.0
328 stars 13 forks source link

Add support for aggregations in clauses #23

Open comnik opened 5 years ago

comnik commented 5 years ago

It is currently not possible to use aggregations within rules, because they can only appear within the find specification. It should be possible to use aggregations like transforms:

[[(total ?user ?sum)
  [?user :user/purchase ?purchase]
  [?purchase :purchase/amount ?amount]
  [(sum ?amount) ?sum]]]