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

docs(model.estimatedDocumentCount): add await into example to get value from the Query #11044

Merged
merged 1 commit into from
Dec 12, 2021

Conversation

olecom
Copy link
Contributor

@olecom olecom commented Dec 3, 2021

Summary

When doing copy/paste of the example

const numAdventures = Adventure.estimatedDocumentCount();

there is no expected numeric value assigned to the numAdventures. By adding await there will be one.

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

Copy link
Collaborator

@vkarpov15 vkarpov15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍

@vkarpov15 vkarpov15 added this to the 6.1.2 milestone Dec 12, 2021
@vkarpov15 vkarpov15 merged commit fbbf3e7 into Automattic:master Dec 12, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants