[SERVER-32140] $[<identifier>] does not work in 3.6.0-rc8 with FCV=3.4 Created: 01/Dec/17 Updated: 27/Oct/23 Resolved: 01/Dec/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | 3.6.0-rc8 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Bashar Mahasen | Assignee: | Tess Avitabile (Inactive) |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Mac 10.12.6 |
||
| Operating System: | ALL | ||||||||||||||||||||||||||||||||||||||||||||||||
| Steps To Reproduce: |
Another example from docs
|
||||||||||||||||||||||||||||||||||||||||||||||||
| Participants: |
| Description |
original summary$[<identifier>] is not working in 3.6.0-rc8 original description$[<identifier>] isn't working and the error code is always 16836 "cannot use the part () to traverse the element ()" |
| Comments |
| Comment by Kelsey Schubert [ 01/Dec/17 ] |
|
Thanks for confirming the issue has been resolved! |
| Comment by Bashar Mahasen [ 01/Dec/17 ] |
|
setting db.adminCommand( { setFeatureCompatibilityVersion: "3.6" }) fixed the issue. Issue resolved. |
| Comment by Tess Avitabile (Inactive) [ 01/Dec/17 ] |
|
It looks like you need to set the featureCompatibilityVersion of the server to 3.6 and upgrade your mongo shell to 3.6. The arrayFilters feature is only available when the featureCompatibilityVersion of the server is 3.6, and the older version of the mongo shell will not pass arrayFilters through to the server. Best, |