i have a problem with the connection to an Atlas cluster for mongoDB.
if i try to fetch some data it returns an error
"No write concern mode named 'majority',' found in replica set configuration"
i've looked up the error and everybody says to delete the &w=majority at the end of the connection string.
did that but now i'm facing a new error
UnhandledPromiseRejectionWarning: MongoParseError: For retryWrites Expected stringified boolean value, got: true
I haven't modified the string in any way, it was working yesterday.
my string is
mongodb+srv://username:[email protected]/dbName?retryWrites=true&w=majority
there's no white space or anything at the end of the string, dunno what it is.
any help?