How can translate this mongo query to spring in mongo
db.getCollection(\'configs\').aggregate( [ { $group: { _id: "$th