Commit Graph

3 Commits

Author SHA1 Message Date
Mathias Stearn
061a086641 SERVER-10165 aggregate() shell helper now returns a cursor
The actual change is in src/mongo/shell/collection.js with the remaining changes
to adjust tests to the new api.

The "ideal" arguments are now an array of pipeline ops and an optional object
with extra top-level options for the command (such as {explain: true}. For
backwards compatibility, we still support the varargs style where each argument
is a pipeline stage, but there is no way to specify extra parameters in this
mode.
2013-10-08 17:35:02 -04:00
Mathias Stearn
c30d78afda SERVER-5916 Allow bare $$ROOT or $$CURRENT without subfields
This represents the whole variable (usually the full incoming document).
2013-09-24 17:17:40 -04:00
Mathias Stearn
063e03c4e8 SERVER-9840 Introduce the concept of Variables into aggregation and add $let to set them
As fallout from the main change, ExpressionObjects now need to be told
at construction time when they should use the semantics of a root object
in a $project (special handling of _id).
2013-06-18 12:51:16 -04:00