首页 > 解决方案 > Spring data mongo db group by _class

问题描述

也许有人知道如何按 _class 字段对集合进行分组。

我有许多具有不同 _class 字段的文档,我想对它们进行分组:

{
   type1: [docs],
   type2: [docs],
   ...
   typen: [docs]
}

标签: javaspringmongodbspring-bootspring-data

解决方案


推荐阅读