We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09d46b9 commit 0346423Copy full SHA for 0346423
source/release-notes/mongoid-7.3.txt
@@ -298,3 +298,11 @@ Mongoid 7.2 behavior:
298
Band.count # => 1
299
Mongoid.purge! # or Mongoid.truncate!
300
301
+
302
303
+``update_one`` Warnings in ``upsert``
304
+-------------------------------------
305
306
+Mongoid 7.3.5 fixes incorrect usage of the driver's ``update_one`` method from
307
+Mongoid's ``upsert`` method. Mongoid's ``upsert`` actually performs a
308
+replacing upsert, and Mongoid 7.3.5 and later correctly call ``replace_one``.
0 commit comments