Skip to content

Commit 0346423

Browse files
committed
MONGOID-5366 add fix to 7.3.5 release notes
1 parent 09d46b9 commit 0346423

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

source/release-notes/mongoid-7.3.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,3 +298,11 @@ Mongoid 7.2 behavior:
298298
Band.count # => 1
299299
Mongoid.purge! # or Mongoid.truncate!
300300
Band.count # => 1
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

Comments
 (0)