Skip to content

Added an example for an aggregate key as this was not clear. #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 26, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions source/reference/aggregation.txt
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,10 @@ The current pipeline operators are:
a single field from the documents in the pipeline, a previously computed
value, or an aggregate key made up from several incoming fields.

.. note::

An aggregate key takes the format: ``{myKeyName: { author:true, myOtherField:true , YetAnotherField:true}}``.

Every group expression must specify an ``_id`` field.
You may specify the ``_id`` field as a dotted
field path reference, a document with multiple fields enclosed in
Expand Down