Skip to content

GODRIVER-2337 Add CustomPipeline to ChangeStreamOptions #880

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

Merged
merged 3 commits into from
Mar 21, 2022
Merged

GODRIVER-2337 Add CustomPipeline to ChangeStreamOptions #880

merged 3 commits into from
Mar 21, 2022

Conversation

benjirewis
Copy link
Contributor

@benjirewis benjirewis commented Mar 21, 2022

GODRIVER-2337

Renames ChangeStreamOptions.CustomOptions (a bson.M with marshalable values to be passed to the initial aggregate) to ChangeStreamOptions.Custom. Adds a ChangeStreamOptions.CustomPipeline (also a bson.M) to be passed to $changeStream stage within the initial aggregate pipeline. Adds an integration test for CustomPipeline.

@@ -58,7 +58,7 @@ type AggregateOptions struct {
// Custom options to be added to aggregate expression. Key-value pairs of the BSON map should correlate with desired
// option names and values. Values must be Marshalable. Custom options may conflict with non-custom options, and custom
// options bypass client-side validation. Prefer using non-custom options where possible.
CustomOptions bson.M
Custom bson.M
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also changed CustomOptions to Custom in AggregateOptions for consistency.

@benjirewis benjirewis marked this pull request as ready for review March 21, 2022 14:22
Copy link
Member

@prestonvasquez prestonvasquez left a comment

Choose a reason for hiding this comment

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

With a very limited understanding of this workflow, this LGTM

@prestonvasquez prestonvasquez merged commit 6cb4f98 into mongodb:master Mar 21, 2022
prestonvasquez added a commit that referenced this pull request Mar 21, 2022
prestonvasquez added a commit that referenced this pull request Mar 21, 2022
benjirewis added a commit that referenced this pull request Mar 21, 2022
@benjirewis benjirewis deleted the changeStreamPipelineOptions.2337 branch March 24, 2022 21:18
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.

2 participants