账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    mongotemplate group分组查询内嵌数组?
    12
    0
    如下所示,我想使用tag分组使用group查询,结果如下,mongotemplate如何写呢?[ { "id":"5cd392bbb53ac62ba8e8593f", "name":"苹果", "price":"12.99", "description":"苹果家庭的低调皇室", "max":"5", "num":"5", "pictures":[], "subMchId":"S0000001", "tag":"精选水果", "infos":null }, { "id":"5cd393dcb53ac61810a67b8e", "name":"苹果", "price":"12.99", "description":"苹果家庭的低调皇室", "max":"5", "num":"5", "pictures":[], "subMchId":"S0000001", "tag":"精选水果", "infos":null }, { "id":"5cd39512b53ac60b905d8602", "name":"苹果", "price":"12.99", "description":"苹果家庭的低调皇室", "max":"5", "num":"5", "pictures":[], "subMchId":"S0000001", "tag":"新鲜蔬菜", "infos":null }]{ "rawResults":{ "retval":[ { "tag":"精选水果", "collection":[ { "id":"5cd392bbb53ac62ba8e8593f", "name":"苹果", "pictures":[] }, { "id":"5cd393dcb53ac61810a67b8e", "name":"苹果", "pictures":[] } ] }, { "tag":"新鲜蔬菜", "collection":[ { "id":"5cd39512b53ac60b905d8602", "name":"苹果", "pictures":[] } ] } ], "count":3, "keys":2, "ok":1 }, "count":3, "keys":2, "serverUsed":null}
    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    更多回答
    扫一扫访问手机版

    回答动态

    老伯:发布了悬赏问题9414754预计能赚取 11积分收益
    发布了悬赏问题9414754预计能赚取 11积分收益
    三岁就很牛:发布了悬赏问题9414754预计能赚取 0积分收益
    妳們艮祫啪:发布了悬赏问题9414754预计能赚取 0积分收益
    发布了悬赏问题9414754预计能赚取 0积分收益
    发布了悬赏问题9414754预计能赚取 11积分收益
    末:发布了悬赏问题9414754预计能赚取 0积分收益
    发布了悬赏问题9414754预计能赚取 0积分收益
    发布了悬赏问题9414754预计能赚取 0积分收益
    苏格拉没有底:发布了悬赏问题9414754预计能赚取 0积分收益