Carrot reference
Methods
.limit()
.limit(number)
- number - the number of results to return.
Return type: List
volunteers.limit(4) returns the first 4 people from the volunteers list.
db.job.find{dept:engineering}.limit(3) returns the first three jobs found in the Engineering department.
findHistoryValues( { checkinScore } ).limit(3).mean() returns the average of the first 3 values of the checkinScore field.