Skip to content

Commit 9d959ce

Browse files
author
Sam Kleinman
committed
merge: release notes DOCS-290
2 parents 93f18db + a48f94c commit 9d959ce

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

source/release-notes/2.2.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,29 @@ Tag Aware Sharding
145145

146146
.. including tagging
147147

148+
Compatibility Changes
149+
~~~~~~~~~~~~~~~~~~~~~
150+
151+
.. TODO add sections here to describe compatibility changes with
152+
regards to authentication, drivers, and mongos'
153+
154+
``findAndMondify`` Returns Null value for Upserts
155+
`````````````````````````````````````````````````
156+
157+
In version 2.2, for :term:`upsert` operations, :dbcommand:`findAndModify`
158+
commands will now return the following output:
159+
160+
.. code-block:: javascript
161+
162+
{'ok': 1.0, 'value': null}
163+
164+
In the :program:`mongo` shell, :dbcommand:`findAndModify` operations
165+
running as upserts will only output a ``null`` value.
166+
167+
Previously, in version 2.0 these operations would return an empty
168+
document, e.g. ``{ }``.
169+
170+
See: :issue:`SERVER-6226`.
148171

149172
Naming
150173
~~~~~~

0 commit comments

Comments
 (0)