[SERVER-13894] Is possible to Paging nested array ?! Created: 09/May/14 Updated: 10/Dec/14 Resolved: 09/May/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Question | Priority: | Major - P3 |
| Reporter: | Giuseppe Quartarone | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Description |
|
This is my case : #The Object Container : { // this is an HashMap , { name : "flour", gr : 300 } } ] I want to show only a few of ingredients of a specific product, |
| Comments |
| Comment by Giuseppe Quartarone [ 10/May/14 ] |
|
Sorry and thanks :'') |
| Comment by Thomas Rueckstiess [ 09/May/14 ] |
|
Hi Giuseppe, You may find the $slice projection operator useful, although you may have to redesign your schema for that to work and use arrays to store ingredients. In general, this SERVER project is for reporting bugs or feature suggestions for the MongoDB server. For MongoDB-related questions and support please post on the mongodb-users group (http://groups.google.com/group/mongodb-user) or Stack Overflow with the mongodb tag. A question like this involving more discussion would be best posted on the mongodb-users group. Kind Regards, |