[DOCS-14134] Positional projection operator fails if no query is specified for field Created: 05/Jan/21 Updated: 30/Oct/23 Due: 26/Feb/21 Resolved: 02/Mar/21 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual, Server |
| Affects Version/s: | None |
| Fix Version/s: | Server_Docs_20231030 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Nikita Lapkov (Inactive) | Assignee: | Andrew Feierabend (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: | |
| Days since reply: | 2 years, 49 weeks, 1 day ago |
| Epic Link: | DOCSP-11701 |
| Story Points: | 2 |
| Description |
|
Our documentation says that positional projection operator returns The first element if no query condition is specified for the array (Starting in MongoDB 4.4). It looks like we do not have such behaviour implemented:
In queries above we do not specify query condition for the array. The query fails instead of returning the first element of array in field a. |
| Comments |
| Comment by Githook User [ 02/Mar/21 ] |
|
Author: {'name': 'Andrew Feierabend', 'email': 'andrew.feierabend@mongodb.com', 'username': 'andf-mongodb'}Message: |
| Comment by Githook User [ 02/Mar/21 ] |
|
Author: {'name': 'Andrew Feierabend', 'email': 'andrew.feierabend@mongodb.com', 'username': 'andf-mongodb'}Message: |
| Comment by Githook User [ 02/Mar/21 ] |
|
Author: {'name': 'Andrew Feierabend', 'email': 'andrew.feierabend@mongodb.com', 'username': 'andf-mongodb'}Message: |
| Comment by Githook User [ 02/Mar/21 ] |
|
Author: {'name': 'Andrew Feierabend', 'email': 'andrew.feierabend@mongodb.com', 'username': 'andf-mongodb'}Message: |
| Comment by Githook User [ 02/Mar/21 ] |
|
Author: {'name': 'Andrew Feierabend', 'email': 'andrew.feierabend@mongodb.com', 'username': 'andf-mongodb'}Message: |
| Comment by Asya Kamsky [ 12/Feb/21 ] |
|
Flagging for re-triage to remove incorrect statement about 4.4 (see PR) |
| Comment by Asya Kamsky [ 19/Jan/21 ] |
|
See https://github.com/mongodb/docs/pull/4750 for fix. The note about first element being picked starting in 4.4 is incorrect. |
| Comment by Ana Meza [ 05/Jan/21 ] |
|
This is a Documentation problemĀ |
| Comment by Asya Kamsky [ 05/Jan/21 ] |
|
|