Reference
>
Operators
>
Aggregation Framework Operators
>
Group Aggregation Operators
>
$max (aggregation)
$max (aggregation)
¶
$max
¶
Returns the highest value among all values of the field in all documents selected by this group.
← $last (aggregation)
$min (aggregation) →
MongoDB Manual
2.4 (current)
Contents
Install MongoDB
MongoDB CRUD Operations
Data Models
Administration
Security
Aggregation
Indexes
Replication
Sharding
Frequently Asked Questions
Reference
Operators
Query and Projection Operators
Update Operators
Aggregation Framework Operators
Pipeline Aggregation Operators
Group Aggregation Operators
$addToSet (aggregation)
$first (aggregation)
$last (aggregation)
$max (aggregation)
$min (aggregation)
$avg (aggregation)
$push (aggregation)
$sum (aggregation)
Boolean Aggregation Operators
Comparison Aggregation Operators
Arithmetic Aggregation Operators
String Aggregation Operators
Date Aggregation Operators
Conditional Aggregation Operators
Meta-Query Operators
Database Commands
mongo
Shell Methods
MongoDB Package Components
Exit Codes and Statuses
Connection String URI Format
MongoDB Limits and Thresholds
Glossary
Release Notes
About MongoDB Documentation
Index
Formats
MongoDB Manual, Single HTML Page
MongoDB Manual, PDF Format
MongoDB Manual, ePub Format
About MongoDB
Introduction
User Community
MongoDB Masters
Planet MongoDB
MongoDB Ecosystem
Drivers and Client libraries
C
(
docs
)
C++
(
docs
)
C#
(
docs
)
Erlang
(
docs
)
Haskell
(
docs
)
Java
(
docs
)
JavaScript
(
docs
)
Perl
(
docs
)
PHP
(
docs
)
Python
(
docs
)
Ruby
(
docs
)
Scala
(
docs
)
Tools and Integration
Platform Integration
MongoDB Resources
Downloads
MongoDB Events
Slides and Video
MongoDB Management Service
(
docs
)
Forums
Blog
Download
Drivers
Events
Translations
Edit this Page
GitHub
Report a Problem