-
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-3726): add optional option overloads of Db's createCollection function #3019
fix(NODE-3726): add optional option overloads of Db's createCollection function #3019
Conversation
@skrtheboss Hi there, thank you for submitting this suggestion. Could you clarify what issue you are running into? Currently, optional options do appear to be supported: for a promise, you can use |
This adds support for calling createCollection with optional options. This is useful if for example a wrapper function is used.
HI @dariakp . |
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 adding the tests to demonstrate your use case, we'll take a look at the changes in detail soon; meanwhile, I have created this ticket to track the PR: https://jira.mongodb.org/browse/NODE-3726
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!
Description
Add support for optional options in createColelction.
What is changing?
This adds support for calling createCollection with optional options.
This is useful if for example a wrapper function is used.
Is there new documentation needed for these changes? No.
What is the motivation for this change?
Overloads do not allow optional options.
Double check the following
npm run check:lint
script<type>(NODE-xxxx)<!>: <description>