Skip to content

Commit 321e3ed

Browse files
author
Sam Kleinman
committed
SERVER-6226 adding note about find and modify change to the release notes
1 parent 770e57c commit 321e3ed

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

source/release-notes/2.2.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,21 @@ Documentation: :ref:`sharding-shard-key-indexes`
362362
Additional Improvements
363363
~~~~~~~~~~~~~~~~~~~~~~~
364364

365+
``findAndMondify`` Returns Null value for Upserts
366+
`````````````````````````````````````````````````
367+
368+
In 2.2, for :term:`upsert` operations, :dbcommand:`findAndModify`
369+
commands will now return the following output:
370+
371+
.. code-block:: javascript
372+
373+
{'ok': 1.0, 'value': null}
374+
375+
In the :program:`mongo` shell, :dbcommand:`findAndModify` operations
376+
running as upserts will only output a ``null` value.
377+
378+
See: :issue:`SERVER-6226`.
379+
365380
``_id`` Index not Required for Updates to Capped Collections
366381
````````````````````````````````````````````````````````````
367382

0 commit comments

Comments
 (0)