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

Default value for option "useCreateIndex" is inconsistant in documentation #10033

Closed
Errorname opened this issue Mar 17, 2021 · 0 comments
Closed
Labels
docs This issue is due to a mistake or omission in the mongoosejs.com documentation
Milestone

Comments

@Errorname
Copy link

Do you want to request a feature or report a bug?

A documentation issue

What is the current behavior?

The default value for useCreateIndex in Mongoose.prototype.connect() is true.

The default value for useCreateIndex in Mongoose.prototype.set() is false.

If I don't explicitly provide the option in connect nor set, what is its default value?

If the current behavior is a bug, please provide the steps to reproduce.

N/A

What is the expected behavior?

The default value should be the same.

What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.

The current documentation is for Mongoose 5.12.0

@vkarpov15 vkarpov15 added this to the 5.12.2 milestone Mar 19, 2021
@vkarpov15 vkarpov15 added the docs This issue is due to a mistake or omission in the mongoosejs.com documentation label Mar 19, 2021
@vkarpov15 vkarpov15 modified the milestones: 5.12.2, 5.12.3 Mar 22, 2021
@vkarpov15 vkarpov15 modified the milestones: 5.12.3, 5.12.4 Mar 31, 2021
@vkarpov15 vkarpov15 modified the milestones: 5.12.4, 5.12.5 Apr 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs This issue is due to a mistake or omission in the mongoosejs.com documentation
Projects
None yet
Development

No branches or pull requests

2 participants