[DOCS-16617] [Server] Add example of using $slice (projection) with an array as 1st parameter Created: 30/Jan/24 Updated: 01/Feb/24 |
|
| Status: | Backlog |
| Project: | Documentation |
| Component/s: | manual, Server |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor - P4 |
| Reporter: | Jérôme Tamarelle | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | request | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| URL(s): | https://www.mongodb.com/docs/manual/reference/operator/projection/slice/ |
| Participants: | |
| Days since reply: | 1 week, 1 day ago |
| Description |
|
The $slice(projection) operator can be used with an array as 1st parameter, like the $slice(aggregation) operator.
This is told by the server error when we use only 1 parameter in an array
The review must be done by the server team, I've only found this undocumented supported feature.
|