[SERVER-2393] $slice from index to end of array Created: 22/Jan/11 Updated: 06/Dec/22 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Trivial - P5 |
| Reporter: | Kirk Morales | Assignee: | Backlog - Query Optimization |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
All |
||
| Assigned Teams: |
Query Optimization
|
| Participants: |
| Description |
|
Would be nice to be able to get from an array all items after a given index, without knowing the length of the array. For example: { _id :1, > db.test.find( {}, { foo: { $slice: [1, $end] } } ) Currently, it seems you can only do this by: } ) } ) |