java - Spring data mongo db group by _class
问题描述
也许有人知道如何按 _class 字段对集合进行分组。
我有许多具有不同 _class 字段的文档,我想对它们进行分组:
{
type1: [docs],
type2: [docs],
...
typen: [docs]
}
解决方案
推荐阅读
- c# - Console.WriteLine 没有打印出来
- android - 在具有外部布局的列表视图中添加按钮
- java - 每 x 秒更新一次 textview 以在后台显示通知
- javascript - 用 jquery 正则表达式检查
- r - 错误:至少一个类级别不是有效的 R 变量名
- android - 如何在回收卡视图中共享卡片视图的内容,如 textview 字符串
- jquery-ui - Google 自动地址:房屋名称属性
- laravel-5 - Boostrap 模态未在 Laravel 5 中加载
- r - for(i in seq_along(data_file):文件错误(文件,“rt”):无效的“描述”参数
- reactjs - 如何在 Meteor 环境中使用 React、Material UI 和 Styled-components 管理服务器端渲染?