I recently updated to 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 rollback the mongodb version after updating to 6.0, so could not try changing that. Tried changing Mongoose driver version.
开发者_如何学JAVAThe error did not get solved.
Firstly,I want to say, after you upgrade the mongoDB version to 6.x atlas doesn't allow to downgrade.
No Index plan available
indicates that you might query the field which doesn't have an index.
After this setting i got the same error and once i applied index to that field the error has been resolved.
精彩评论