Re: [Aggregation] Be able to count number of item in a sub-collection

2014-06-27 Thread Grégoire Pineau
Yes and no ;) Because I would like to be able to also filter node in the collection. And then cound. Actually, the collection contains orders, and I want to be able to know how many paid order I get for a user. On Friday, June 27, 2014 8:40:49 AM UTC+2, Timber wrote: Could you not add a count

[Aggregation] Be able to count number of item in a sub-collection

2014-06-26 Thread Grégoire Pineau
Hello I have the following data [ { id: 1, collection: [ { key: val1 }, { key: val2 }, { key: val3 } ] }, { id: 2,