is there a way to group values in a vector or set in an aggregate, so i return something like this {:id 1 :count 3 :entities [1 2 3]} so in essence :entites are the values I counted ?
to answer my own question distinct in the find seems to do what I require :)