I have a function that receive an Aggregation aggregation
as a param.
I would like to get all AggregationOperation
from aggregation
. Is there any way to do it?
public Aggregation newCustomAggregation(Aggregation aggregation, Criteria c) {
// How to get list operation aggregation there?
listOperation.push(Aggregation.match(c));
return Aggregation
.newAggregation(listOperations);
}
My purpose is new another Aggregation
with my custom MatchAggregation
.