apa512 / clj-rethinkdb

Eclipse Public License 1.0
204 stars 42 forks source link

group by multiple things supported? #154

Closed thedavidmeister closed 8 years ago

thedavidmeister commented 8 years ago

In the data explorer I can do this:

r.table('foo').group('a', 'b')

And it works as expected.

In clojure though, (r/group "a" "b") does not work, and obvious things i tried like (r/group "a") (r/group "b") and (r/group ["a" "b"]) didn't work either.

Is there a way to make this work?

apa512 commented 8 years ago

You're right. Group with multiple fields was missing. Sorry about that.

Fixed in 0.15.19 which was released just a few minutes ago. (r/group ["a" "b"]) is how you use it.

thedavidmeister commented 8 years ago

awesome.

I created a compound index in the meantime, and grouped on that, but good to extend the API :)