views:

14

answers:

1

How can I specify which fields to return in a group() query? find() has fields parameter; group() doesn't.

A: 

Write a javascript function that removes the fields you don't want and pass it to the finalize parameter of group

Charles Hooper
Isn't it going to slow down the query?
Pawel Decowski
Of course it is, but it does what you asked.
Charles Hooper