Skip to content

Simplify usage of user provided aggregation operations. #4038

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

Closed
christophstrobl opened this issue Apr 27, 2022 · 0 comments
Closed

Simplify usage of user provided aggregation operations. #4038

christophstrobl opened this issue Apr 27, 2022 · 0 comments
Assignees
Labels
theme: 4.0 type: enhancement A general enhancement

Comments

@christophstrobl
Copy link
Member

Add the possibility to provide aggregation operations by leveraging plain java driver API (Document/Bson).

AggregationOperation op = Aggregation.stage(Aggregates.search(exists(fieldPath("tomatoes.dvd"))));

When using Bson values as part of the stage, we'd need to make sure when converting those to Document that the configured CodecRegistry is applied correctly.

@christophstrobl christophstrobl self-assigned this Apr 27, 2022
mp911de added a commit that referenced this issue Jun 27, 2022
Simplify code.

Original pull request: #4059.
See #4038
@mp911de mp911de added this to the 4.0 M5 (2022.0.0) milestone Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme: 4.0 type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants