Sorting nested objects with arrays in Mongo

前端 未结 0 1255
醉梦人生
醉梦人生 2021-01-27 08:26

If I have these two objects:

OBJECT A:

{
  ...,
  votes: {
    claps: [{ count: 10, }, { count: 5 }],
    hearts: [{ count: 5 }, { count: 2 }]
  }
}


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题