Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add retryWrites to MongoConnectionOptions #8354

Merged
merged 1 commit into from Nov 13, 2021
Merged

fix: add retryWrites to MongoConnectionOptions #8354

merged 1 commit into from Nov 13, 2021

Conversation

ahilke
Copy link
Contributor

@ahilke ahilke commented Nov 11, 2021

Description of change

Add retryWrites property to MongoConnectionOptions to match change to MongoDriver made in #7869.
I encountered this missing type when using TypeOrmModuleOptions from @nestjs/typeorm, which is based on the MongoConnectionOptions interface.

The doc string is taken from https://docs.mongodb.com/v4.0/reference/method/Mongo.startSession/.

Pull-Request Checklist

  • Code is up-to-date with the master branch
  • npm run lint passes with this change
  • npm run test passes with this change
  • This pull request links relevant issues as Fixes #0000
  • There are new or updated unit tests validating the change
  • Documentation has been updated to reflect this change
  • The new commits follow conventions explained in CONTRIBUTING.md

Add `retryWrites` property to `MongoConnectionOptions` to match change
to `MongoDriver` made in #7869.
@pleerock pleerock merged commit c895680 into typeorm:master Nov 13, 2021
@pleerock
Copy link
Member

Thank you!

@ahilke ahilke deleted the fix-retry-writes-type-missing branch November 14, 2021 21:02
HeartPattern pushed a commit to HeartPattern/typeorm that referenced this pull request Nov 29, 2021
Add `retryWrites` property to `MongoConnectionOptions` to match change
to `MongoDriver` made in typeorm#7869.
HeartPattern pushed a commit to HeartPattern/typeorm that referenced this pull request Nov 29, 2021
Add `retryWrites` property to `MongoConnectionOptions` to match change
to `MongoDriver` made in typeorm#7869.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants