How to fix retryWrites in Mongo?
I solved it by putting retryWrites=false
at the end of connection string
mongodb://username:[email protected]:62807/robobalancedb?retryWrites=false
I fixed it without touching the connexionstring throught code :
var url = new MongoUrl(Configuration.GetValue<string>("MongoConnection"));
var mongoClientSettings = MongoClientSettings.FromUrl(url);
mongoClientSettings.RetryWrites = false;
services.AddSingleton<IMongoClient>(new MongoClient(mongoClientSettings));