Popular Posts

Saturday, January 17, 2015

In mongoDB - newAggregation throws match compilation error


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