Skip to content

Is it possible to use aggregation update in BulkOperations? #4340

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
LeonLiu-Hiretual opened this issue Mar 22, 2023 · 1 comment
Closed
Labels
status: duplicate A duplicate of another issue

Comments

@LeonLiu-Hiretual
Copy link

LeonLiu-Hiretual commented Mar 22, 2023

Hi, I would like to use aggregation update in spring data mongo BulkOperations

MongoTemplate's update function support AggregationUpdate, e.g
UpdateResult updateMulti(Query query, UpdateDefinition update, String collectionName);
this would accept AggregationUpdate.

but currently in BulkOperations it only supports
BulkOperations upsert(List<Pair<Query, Update>> updates);

I am wondering if it could support aggregation update in bulk upsert like
BulkOperations upsert(List<Pair<Query, UpdateDefinition>> updates);

Thanks!

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Mar 22, 2023
@christophstrobl christophstrobl added status: duplicate A duplicate of another issue and removed status: waiting-for-triage An issue we've not yet triaged labels Mar 22, 2023
@christophstrobl
Copy link
Member

This is not yet supported. Closing as duplicate of: #3872

@christophstrobl christophstrobl closed this as not planned Won't fix, can't repro, duplicate, stale Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants