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 / Enhancement request for Model.find({}) . #9210

Closed
jennifer-abu opened this issue Jul 6, 2020 · 1 comment
Closed

Documentation / Enhancement request for Model.find({}) . #9210

jennifer-abu opened this issue Jul 6, 2020 · 1 comment
Labels
docs This issue is due to a mistake or omission in the mongoosejs.com documentation
Milestone

Comments

@jennifer-abu
Copy link

This is a documentation request ...

I often have trouble finding documentation for basic methods ...

In this case

Mode.find({})

I am trying to find the documentation for this method with this particular syntax above ...

I looked here

https://mongoosejs.com/docs/api.html#model_Model.find

but could not find specific information about the behavior of the above method with the single argument {}.

@Rapol
Copy link

Rapol commented Jul 9, 2020

Most of the time you can look into the mongo equivalent query function and that will behave the same. https://docs.mongodb.com/manual/reference/method/db.collection.find/

For Model.find({}), it will return all records since all record satisfy the empty query criteria.

@vkarpov15 vkarpov15 added this to the 5.9.24 milestone Jul 12, 2020
@vkarpov15 vkarpov15 added the docs This issue is due to a mistake or omission in the mongoosejs.com documentation label Jul 12, 2020
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

3 participants