Facet + Aggregate Query using ObjectId issue with Spring Data Mongo
问题 I am developing Spring Boot + Spring Data Mongo . I am really struggling to public Page<EmployeeOut> getData(Pageable pageable) { ....... ....... MatchOperation matchStage = Aggregation.match(criteria); GroupOperation groupOp = Aggregation .group("firstName", "lastName", "email", "status", "id") .addToSet("department").as("department").addToSet("address").as("address"); ProjectionOperation projectStage = Aggregation.project("firstName", "lastName", "email", "status", "department", "address",