[DOCS-6242] Comment on: "manual/reference/operator/aggregation/max.txt" Created: 20/Sep/15  Updated: 03/Nov/17  Resolved: 01/Apr/16

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Location: http://docs.mongodb.org/manual/reference/operator/aggregation/max/
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0
Referrer: https://www.google.co.in
Screen Resolution: 1366 x 768
repo: docs
source: reference/operator/aggregation/max


Participants:
Days since reply: 7 years, 45 weeks, 6 days ago

 Description   

How to use mongodb aggregation without grouping..what if i want to find the maximum price among all the documents i have inserted then i dont want to group i want maximum among all.... it should be included ASAP...



 Comments   
Comment by Kay Kim (Inactive) [ 01/Apr/16 ]

$group ref page has the $group by null example:
Also, could do it with a regular find().sort().limit() combo.

Generated at Thu Feb 08 07:51:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.