I recently updated MongoDB version 6.0.3. I am using MongoDB driver version 4.5.0. And Mongoose version 6.3.1.
I am trying to do a findOneAndUpdate with upsert and getting an error. Console Error
Also, when I am trying to query something on Atlas, (even something basic and simple), it returns an error. Please help me with what I may be missing. Atlas Error
Tried changing the MongoDB driver version. Could not roll back the MongoDB version after updating to 6.0, so could not try changing that. Tried changing the Mongoose driver version.
The error did not get solved.