We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6670bfc commit bd016d8Copy full SHA for bd016d8
packages/mongodb-runner/src/mongoserver.ts
@@ -350,7 +350,8 @@ export class MongoServer {
350
fn: Fn,
351
): Promise<ReturnType<Fn>> {
352
const client = await MongoClient.connect(
353
- `mongodb://${this.hostport}/?directConnection=true`,
+ // directConnection + retryWrites let us write to `local` db on secondaries
354
+ `mongodb://${this.hostport}/?directConnection=true&retryWrites=false`,
355
);
356
try {
357
return await fn(client);
0 commit comments