-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Model.exists() should return a query instead of a promise #8097
Comments
I cannot agree more with @vkarpov15 With current implementation, there is no way to use |
@felixveysseyre there is an options parameter to |
@vkarpov15 Thanks for your answer 🙃 Looking into the sources, I have been able to find the options parameters you are talking about. I've been tricked by the outdated documentation and the wrong types 😭 |
Making a note of this for #8108 |
…romise, and return doc or null, rather than true/false Fix #8097
@vkarpov15 If so, this should fix #8739 |
Should revert #8764 once this is released. |
@AbdelrahmanHafez actually |
Re: #8075 ,
Model.exists()
is very inconsistent with other helper functions.The text was updated successfully, but these errors were encountered: