Improve change log

This commit is contained in:
Michael S. Klishin 2012-05-28 00:48:24 +04:00
parent 63f7099350
commit 16f14ac39d

View file

@ -5,6 +5,10 @@
`monger.collection/aggregate` provides a convenient way to run [aggregation queries](http://docs.mongodb.org/manual/reference/aggregation/).
``` clojure
(ns my.service
(:require [monger.collection :as mc])
(:use monger.operators))
;; single stage pipeline
(mc/aggregate "docs" [{$project {:subtotal {$multiply ["$quantity", "$price"]}
:_id "$state"}}])