[CSHARP-3435] Issue with Inject() method, on aggregate queries Created: 24/Feb/21 Updated: 31/Mar/22 |
|
| Status: | Backlog |
| Project: | C# Driver |
| Component/s: | LINQ3 |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Labros Papadopoulos | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | Bug, driver | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Description |
|
I have the following simple join query.
Now I want to perform a filter operation on the users that are returned. If I perform the filter query using the LINQ functions as follows
The following query is generated by the driver.
which works perfectly fine. Now, if I use a FilterDefinition along with the Inject() method as follows.
The following query is generated by the driver.
which when executed doesn't yield any results. Notice that the difference between those 2 queries is that the second one doesn't specify the __fld0 field at the last match operation. It appears to be an issue when using the Inject() method along with any IMongoQueryable that represents an aggregation query. |
| Comments |
| Comment by Boris Dogadov [ 24/Feb/21 ] |
|
Thank you for reporting this issue. |