Skip to content

fix(NODE-3074): update estimated document count for v1 api #2764

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 8 commits into from
Apr 7, 2021

Conversation

emadum
Copy link
Contributor

@emadum emadum commented Mar 24, 2021

The estimatedDocumentCount operation now uses an aggregate command
with a $collStats stage against servers >=4.9.0 (spec).

NODE-3074

@emadum emadum force-pushed the NODE-3074/update-estimated-document-count-v1 branch from b76612f to e930b52 Compare March 26, 2021 15:31
@emadum emadum marked this pull request as ready for review March 28, 2021 18:09
@emadum emadum changed the title fix: update estimated document count for v1 api fix(NODE-3074): update estimated document count for v1 api Mar 28, 2021
@emadum emadum requested review from nbbeeken and durran March 28, 2021 18:52
Copy link
Contributor

@nbbeeken nbbeeken left a comment

Choose a reason for hiding this comment

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

Looks good, just a few nits:

@emadum emadum force-pushed the NODE-3074/update-estimated-document-count-v1 branch from bf0f8f0 to 9406494 Compare March 29, 2021 21:42
@emadum emadum requested a review from nbbeeken March 30, 2021 14:09
Copy link
Contributor

@nbbeeken nbbeeken left a comment

Choose a reason for hiding this comment

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

lgtm!

Copy link
Member

@durran durran left a comment

Choose a reason for hiding this comment

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

LGTM

@emadum emadum merged commit 146791c into 4.0 Apr 7, 2021
@emadum emadum deleted the NODE-3074/update-estimated-document-count-v1 branch April 7, 2021 20:58
ljhaywar pushed a commit that referenced this pull request Nov 9, 2021
The estimatedDocumentCount operation now uses an aggregate command
with a $collStats stage against 5.0+ servers.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants