[CSHARP-877] How can we select record from two colections from MongoDb? Created: 13/Dec/13 Updated: 05/Apr/19 Resolved: 13/Dec/13 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | 1.8.3 |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | tipu moazzam khan | Assignee: | Robert Stam |
| Resolution: | Done | Votes: | 0 |
| Labels: | question | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Hello, Plz help me. i am quite new in MongoDb. our organization is planning to0 purchase subscription but prior to that , i need to submit a poc that have this requirement. Thanks in advance. Regards, |
| Comments |
| Comment by Robert Stam [ 13/Dec/13 ] | |||||||
|
MongoDB does not support server side joins. The way to do this is to issue two queries. In the first query you get all the matching documents from the first collection. In the second query you get all the matching documents in the second collection. Here's a code sample using your scenario (collections c1 and c2 with a common "name" field):
|