db.getCollection('product_protocol_new').aggregate([
{$sort:{"end_date":-1}},
{$group:{
_id:"$company_protocol", end_date:{"$first":"$$ROOT"},
}}
])

相关文章:

  • 2022-02-22
  • 2022-12-23
  • 2022-01-18
  • 2022-12-23
  • 2022-12-23
  • 2021-07-31
  • 2022-12-23
  • 2021-06-21
猜你喜欢
  • 2022-01-01
  • 2022-12-23
  • 2021-08-01
  • 2022-02-18
  • 2022-12-23
  • 2022-02-11
  • 2022-01-19
相关资源
相似解决方案