Skip to content

make newAggregation() method to accept list [DATAMONGO-791] #1718

@spring-projects-issues

Description

@spring-projects-issues

Bilguun Bayarmagnai opened DATAMONGO-791 and commented

List<AggregationOperation> operations = new ArrayList<AggregationOperation>();
operations.add(match(...));
operations.add(unwind(...));

Aggregation aggregation = newAggregation(operations);

I would like to decide to or not to include pipeline operations on runtime.
So we would need to pass these operations as List. But currently, it only accepts argument-array, doesn't even allow to convert my List to Array and pass it


Affects: 1.3.2 (Babbage SR1)

Referenced from: commits 189911a, 332e5eb, ee9a699

Backported to: 1.3.3 (Babbage SR2)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions