[DOCS-11290] The example for positional-all does NOT work Created: 06/Feb/18  Updated: 27/Oct/23  Resolved: 07/Feb/18

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Docs Collector User (Inactive) Assignee: Unassigned
Resolution: Works as Designed Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu xenial (16.04.3 LTS)
Mongod v.3.6.2


Participants:
Days since reply: 6 years, 1 week ago

 Description   

The example with 'students' collection results in the following error:

"cannot use the part (grades of grades.$[]) to traverse the element (

{grades: [ 85.0, 82.0, 80.0 ]}

)"

I am using MongoDB v. 3.6.2, so it should work (it works for 3.6).

Please help.
Thank you!



 Comments   
Comment by Jonathan DeStefano [ 07/Feb/18 ]

Hi Lukasz,

Thank you for filing a DOCS ticket. The following documentation for the 3.6 upgrade procedures cover setting the featureCompatibilityVersion to 3.6:

Regards,
Jon

Comment by Lukasz Czerwinski [X] [ 06/Feb/18 ]

Hah, it seems I discovered the fix.

> db.adminCommand( { getParameter: 1, featureCompatibilityVersion: 1 } )
{ "featureCompatibilityVersion" : { "version" : "3.4" }, "ok" : 1 }
> db.adminCommand( { setFeatureCompatibilityVersion:"3.6"})
{ "ok" : 1 }

I think it should be clearly stated either in documentation or in error message in MongoDB that this featureCompatibilityVersion flag needs to be set to 3.6.

Generated at Thu Feb 08 08:02:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.