I've tried digging around on the internet everywhere, but can't find for the life of me how to use this method. I have tried looking at the mongo console to correlate the two, but my it has defeated my brain. Can anybody help me out at all with this or point me in the direction of help?
I am using the C# driver from mongodb.org.
I have the following document:
ObjectId Id ObjectId ForeignId
I would like to count the number of documents and group the count by the ForeignId field. Thanks!
group? mongodb.org/display/DOCS/Aggregation#Aggregation-Group