[SERVER-998] Extending Field visibility Created: 11/Apr/10 Updated: 29/Aug/11 Resolved: 29/Aug/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Loïc Faure-Lacroix | Assignee: | Eliot Horowitz (Inactive) |
| Resolution: | Duplicate | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: |
| Description |
|
As it is right now, the find function allow us to hide or show some fields. It would be nice to give us some more control. {comments: true, title: true, summary: true} will show those 3 field for each matched document. So instead of the true parameter, we could add some criteria. {comments: {$limit: 3}} would limit to 3. here are some operator that could be used to manipulate to filter the returned tree. $limit |
| Comments |
| Comment by Eliot Horowitz (Inactive) [ 29/Aug/11 ] |
|
See the $slice operator |