Answers for "MongoWriteConcernError: No write concern mode named 'majority ' found in replica set configuration"

1

MongoWriteConcernError: No write concern mode named 'majority ' found in replica set configuration

//just &w=majority  from connection string !
"mongoURI" : "mongodb+srv://${ user }:${ password }@cluster0.mde0j.mongodb.net/cluster0?retryWrites=true&w=majority "
//it will lok like this 
"mongoURI" : "mongodb+srv://${ user }:${ password }@cluster0.mde0j.mongodb.net/cluster0?retryWrites=true"
Posted by: Guest on July-29-2021

Code answers related to "MongoWriteConcernError: No write concern mode named 'majority ' found in replica set configuration"

Code answers related to "Javascript"

Browse Popular Code Answers by Language