Untitled
Anonymous
plain_text
07/25/2024 2:13 AM
444 B
21
Indexable
AggregationResults<Document> results = mongoTemplate.aggregate(aggregation,
"internet", Document.class);
List<Document> statisticResponses = results.getMappedResults();
// Chuyển đổi danh sách kết quả thành JsonNode
return objectMapper.valueToTree(statisticResponses);Editor is loading...
Leave a Comment