Skip to content

Conversation

durran
Copy link
Member

@durran durran commented Oct 7, 2025

Description

Driver no longer throws on an aggregation when write concern and explain are provided. Server will now error.

Summary of Changes

Removes the check in the driver and updates tests.

What is the motivation for this change?

NODE-4184

Release Highlight

Aggregate with Write Concern + Explain No Longer Throws Client Side

This will now throw a MongoServerError

Double check the following

  • Lint is passing (npm run check:lint)
  • 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

@durran durran changed the title feat(NODE-4184): don't throw on aggregate with write concern and explain feat(NODE-4184)!: don't throw on aggregate with write concern and explain Oct 7, 2025
@durran durran marked this pull request as ready for review October 7, 2025 20:32
@durran durran requested a review from a team as a code owner October 7, 2025 20:32
@tadjik1 tadjik1 self-assigned this Oct 8, 2025
@tadjik1 tadjik1 added the Primary Review In Review with primary reviewer, not yet ready for team's eyes label Oct 8, 2025
Copy link
Contributor

@tadjik1 tadjik1 left a comment

Choose a reason for hiding this comment

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

Thanks for your work @durran (and also for helping migrating the tests)!

@tadjik1 tadjik1 added Team Review Needs review from team Primary Review In Review with primary reviewer, not yet ready for team's eyes and removed Primary Review In Review with primary reviewer, not yet ready for team's eyes labels Oct 8, 2025
@tadjik1 tadjik1 merged commit 88e02a4 into main Oct 8, 2025
27 checks passed
@tadjik1 tadjik1 deleted the NODE-4184-new branch October 8, 2025 16:53
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 Team Review Needs review from team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants