Commit e5915c56 authored by Jens Segers's avatar Jens Segers

Note on aggregations from issue #44

parent 7b2867bd
......@@ -185,6 +185,8 @@ Selected columns that are not grouped will be aggregated with the $last function
**Aggregation**
*Aggregations are only available for MongoDB versions greater than 2.2.*
$total = Order::count();
$price = Order::max('price');
$price = Order::min('price');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment