I have a mongoDB Query that uses aggregation. I am applying projection and then unwind. ProjectionOperation projectionPreUnwind = Aggregation.project(Fields.from(Fields.field("result.detections.reference.control", "result.detections.reference.control"))); UnwindOperation unwindOpn = Aggregation.unwind("result.detections"); Aggregation aggregation = Aggregation.newAggregation(projectionPreUnwind, unwindOpn); LOGGER.info(" aggregation {}", aggregation); AggregationResults<String> detectionsDataAggr = mongoTemplate.aggregate(aggregation, CASES_COLLECTION, String.class); The…