php-mongomock icon indicating copy to clipboard operation
php-mongomock copied to clipboard

Add the $setOnInsert upsert operator

Open alexeygeno opened this issue 2 years ago • 0 comments

Additionally:

  • Emulating mongo behaviour for $set and $setOnInsert combined - https://stackoverflow.com/questions/23992723/findandmodify-fails-with-error-cannot-update-field1-and-field1-at-the-same/23994425#23994425

  • Emulating mongo behaviour for $inc: it should increment even a non-existing field

alexeygeno avatar Apr 12 '23 16:04 alexeygeno