File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -362,6 +362,21 @@ Documentation: :ref:`sharding-shard-key-indexes`
362362Additional 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
You can’t perform that action at this time.
0 commit comments