[SERVER-53007] Add $eq support to queryOperatorMap Created: 20/Nov/20 Updated: 29/Oct/23 Resolved: 03/Dec/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 4.9.0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | PM Bot | Assignee: | James Wahlin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | autogen-todo | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||
| Backport Requested: |
v4.4
|
||||||||||||
| Sprint: | Query 2020-12-14 | ||||||||||||
| Participants: | |||||||||||||
| Description |
|
Equality ($eq) was previously omitted from the queryOperatorMap because it is was used as the default return value for the MatchExpressionParser::parsePathAcceptingKeyword method when an operator was not recognized. Since then MatchExpressionParser::parsePathAcceptingKeyword has been modified to return a boost::optional and we can now differentiate. As part of this work we should also remove the TODO for |
| Comments |
| Comment by Githook User [ 03/Dec/20 ] | ||||||||||
|
Author: {'name': 'James Wahlin', 'email': 'james@mongodb.com', 'username': 'jameswahlin'}Message: | ||||||||||
| Comment by James Wahlin [ 02/Dec/20 ] | ||||||||||
|
It is worth noting that a side affect of this change is that $pull will now accept $eq, where it previously would fail:
|