[CSHARP-1551] MongoCollection.Group function return partial data. Created: 01/Feb/16  Updated: 05/Apr/19  Resolved: 02/Feb/16

Status: Closed
Project: C# Driver
Component/s: API
Affects Version/s: 1.7.1
Fix Version/s: None

Type: Task Priority: Critical - P2
Reporter: Steven.Zhou [X] Assignee: Unassigned
Resolution: Done Votes: 0
Labels: question
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Os: windows7 and the version of mongodb server is 3.0.



 Description   

Using MongoCollection.Group function to fetch the data from mongodb. But the returned data is partial. It always is one ducument. But in fact it should return several documents after grouping. I can get several documents by group command in client tool of mongodb. But by this api, I can not get full data. It is very strange. Maybe it will always return one object and there are several documents in that object. But it doesn't. Hope some one can help me to resolve this question. Thanks very much indeed.



 Comments   
Comment by Steven.Zhou [X] [ 02/Feb/16 ]

Hi Craig,

Thanks for your response.
Finally, I resolved the issue. The parameter which is given to the function is not correct. I am a newbie for that.

Thanks,
Steven

Comment by Craig Wilson [ 01/Feb/16 ]

Hi Steven,

Without some example code and some example documents, there isn't anything we'll be able to help you with. Could you provide:

1. The C# code you are using to call the Group function?
2. The code you are using in the client tool to invoke the group command?
3. Some example documents that exist in the database you are attempting to group on.

Thanks,
Craig

Generated at Wed Feb 07 21:39:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.