incubator icon indicating copy to clipboard operation
incubator copied to clipboard

write concern object cannot be empty when I use "findOneAndUpdate"

Open sunz5010 opened this issue 6 years ago • 3 comments

my incubator version is "3.4" when I upgrade MongoDB from 4.0 to 4.2 it shows write concern object cannot be empty when I use findOneAndUpdate command I have to add option

'writeConcern' => new \MongoDB\Driver\WriteConcern(\MongoDB\Driver\WriteConcern::MAJORITY),

it works on MongoDB 4.0 if I didn't give writeConcern, but it not works on 4.2 version

sunz5010 avatar Sep 19 '19 08:09 sunz5010

I am facing the same issue.

aadi99999 avatar Sep 30 '21 12:09 aadi99999

Hi All, i am also facing the same issue, is this resolved on 4.4.2?

raizadattn avatar Oct 01 '21 03:10 raizadattn

I am facing the same issue. But ... Finally I use the mongodb package (https://packagist.org/packages/mongodb/mongodb)

sakurallj avatar Feb 25 '22 10:02 sakurallj

Try to use phalcon/[email protected]

Jeckerson avatar Jul 09 '23 21:07 Jeckerson