Thursday, 1 September 2016

In mongoDB - newAggregation throws match compilation error ~ gniithelp

Aggregation aggregation = newAggregation (
match(criteria)
)

solution
Import static newAggregation instead of nonstatic newAggregation
import static org.springframework.data.mongodb.core.aggregation.Aggregation.newAggregation;

No comments:

Post a Comment