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

Documentation of the "lean" option #5996

Closed
aguyinmontreal opened this issue Jan 13, 2018 · 2 comments
Closed

Documentation of the "lean" option #5996

aguyinmontreal opened this issue Jan 13, 2018 · 2 comments
Milestone

Comments

@aguyinmontreal
Copy link

I need some clarifications. I think there is some confusion with the "lean" option in the Mongoose documentation.

Under Query#setOptions(options), it says:

The following options are only for find(), findOne(), findById(), and findOneAndUpdate():

  • lean

First, why does it include findOneAndUpdate but not findByIdAndUpdate ?

Second, why can I then find the lean option in the Model.geoSearch option list?

Third, why is the lean option not in the Model.findOneAndUpdate options list?

Thank you in advance!

@vkarpov15 vkarpov15 added this to the 5.0.0 milestone Jan 14, 2018
@vkarpov15
Copy link
Collaborator

Thanks for reporting, fix will be in the next release 👍

@vkarpov15 vkarpov15 modified the milestones: 5.0.0, 4.13.10 Jan 14, 2018
@vkarpov15 vkarpov15 reopened this Jan 14, 2018
@vkarpov15
Copy link
Collaborator

On second thought, also need to apply this to the 4.x docs

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

No branches or pull requests

2 participants