File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,29 @@ Tag Aware Sharding
145
145
146
146
.. including tagging
147
147
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`.
148
171
149
172
Naming
150
173
~~~~~~
You can’t perform that action at this time.
0 commit comments