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

refactor: move CountDocument logic into collection API #4148

Merged
merged 3 commits into from
Jun 17, 2024

Conversation

nbbeeken
Copy link
Contributor

Description

What is changing?

  • Delete CountDocument operation class
  • Move logic into collection.countDocuments
Is there new documentation needed for these changes?

What is the motivation for this change?

The subclass is unneccessary and make typing difficult. See: #4112 (comment)

Double check the following

  • Ran npm run check:lint script
  • Self-review completed using the steps outlined here
  • PR title follows the correct format: type(NODE-xxxx)[!]: description
    • Example: feat(NODE-1234)!: rewriting everything in coffeescript
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

@nbbeeken nbbeeken force-pushed the chore-migrate-count-doc-operation-2 branch from b3e872c to d727f16 Compare June 13, 2024 21:26
src/collection.ts Outdated Show resolved Hide resolved
@baileympearson baileympearson self-assigned this Jun 14, 2024
@baileympearson baileympearson added the Primary Review In Review with primary reviewer, not yet ready for team's eyes label Jun 14, 2024
@nbbeeken
Copy link
Contributor Author

@baileympearson looks good to go?

@baileympearson baileympearson merged commit c948d9c into main Jun 17, 2024
29 checks passed
@baileympearson baileympearson deleted the chore-migrate-count-doc-operation-2 branch June 17, 2024 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Primary Review In Review with primary reviewer, not yet ready for team's eyes
Projects
None yet
2 participants