Skip to content

Commit 14e63a0

Browse files
author
Sam Kleinman
committed
release-notes: adding reference to release notes in findandmodify document.
1 parent 9d959ce commit 14e63a0

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

source/reference/commands.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,8 +517,13 @@ Aggregation
517517

518518
:field upsert: when ``true``, creates a new document if the
519519
specified ``query`` returns no documents. The
520-
default is ``false``.
520+
default is ``false``. The return value for these
521+
operations is ``null`` in version 2.2
521522

523+
.. versionchanged:: 2.2
524+
Previously, ``upsert`` operations returned a an empty document
525+
(e.g. ``{ }``,) see :ref:`the 2.2 release notes
526+
<2.2-findandmodify-returns-null>` for more information.
522527

523528
For example:
524529

source/release-notes/2.2.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ Compatibility Changes
151151
.. TODO add sections here to describe compatibility changes with
152152
regards to authentication, drivers, and mongos'
153153

154+
.. _2.2-findandmodify-returns-null:
155+
154156
``findAndMondify`` Returns Null value for Upserts
155157
`````````````````````````````````````````````````
156158

0 commit comments

Comments
 (0)