clj-3df icon indicating copy to clipboard operation
clj-3df copied to clipboard

Add support for aggregations in clauses

Open comnik opened this issue 7 years ago • 0 comments

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]]]

comnik avatar Nov 06 '18 11:11 comnik