[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.
Let say we have front page that display the last 20 pages and their last 3 comments. We don't need to load every comment of each page.

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
$skip
$sort (though the actual sort could be used instead)
$gt (greater than)
$lt (lesser than)
$eq (equal)
$regexp
$like
....



 Comments   
Comment by Eliot Horowitz (Inactive) [ 29/Aug/11 ]

See the $slice operator

Generated at Thu Feb 08 02:55:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.