Mongo db java unwind operation in aggregate query throwing exception
问题 When working with embedded mongo document I am trying to unwind the array but I am getting exception like org.springframework.data.mapping.model.MappingInstantiationException: Failed to instantiate java.util.List using constructor NO_CONSTRUCTOR with arguments. The query what I wrote is, Aggregation agg = newAggregation( unwind("recipients"), match(Criteria.where("recipients.userId").is("800").andOperator(Criteria.where("recipients.status").is(false) ))); Logs.java private String id; private