Skip to content

DOCS-8419: Aggregation compatibilty changes for $unwind #3012

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

Closed
wants to merge 1 commit into from
Closed
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
6 changes: 6 additions & 0 deletions source/release-notes/3.2-compatibility.txt
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@ Aggregation Compatibility Changes
expression, use the :expression:`$literal` operator to create a
literal value.

- :pipeline:`$unwind` no longer errors on non-array operands. If the operand
does not resolve to an array but is not missing, null, or an empty array,
:pipeline:`$unwind` treats the operand as a single element array.
Previously, if a value in the field specified by the field path was *not* an
array, :method:`db.collection.aggregate()` generated an error.


.. _3.2-spidermonkey-compatibility:

Expand Down