[COMPASS-3391] aggregation pipeline builder does not support combined $or and ObjectId('') in $match Created: 16/Jan/19 Updated: 29/Oct/23 Resolved: 17/Mar/20 |
|
| Status: | Closed |
| Project: | Compass |
| Component/s: | Aggregation pipeline, Compass, Grammar |
| Affects Version/s: | 1.16.3 |
| Fix Version/s: | 1.22.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Brian Blevins | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
The aggregation pipeline builder will allow a $match stage with either an ObjectId('') expression or a $or expression. However, it will not allow those two to be combined. Please refer to the attached screenshot.
{
In brief testing, combining ObjectId('') with other expressions appears to work. Combining $or with other expressions appears to work.
|