-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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(NODE-3311): Fix "session" typescript typing for "insertOne" options. #2816
Conversation
8491d43
to
4e0a48f
Compare
Hi, thanks for catching it! This does seem like the correct fix, I'll add it to our review queue. :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this 🚀
@dariakp @nbbeeken It was a lot of work! :P. I can bring up any issues I come across. With this PR, all my tests for type-mongodb pass. Great work with the new driver. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix! One small request - can you remove the now-unused imports? Our lint check is complaining:
/data/mci/2e60a5e8f169e69a6e99236d7cd23982/src/src/operations/insert.ts
8:25 warning 'BSONSerializeOptions' is defined but never used @typescript-eslint/no-unused-vars
10:24 warning 'WriteConcernOptions' is defined but never used @typescript-eslint/no-unused-vars
✖ 2 problems (0 errors, 2 warnings)
Should be updated. Somehow lint & test was passing locally. |
NODE-3311
insertOne
is missing common options + session typings.