How to use the mongodb aggregate pipeline to find documents with value greater than the first document in one pass?

前端 未结 0 683
不知归路
不知归路 2021-01-25 09:45

Suppose I have a collection holding customer data, and I want to apply the following operations:

  1. Sort by age
  2. Keep only those in the 30yo---50yo age group
相关标签:
回答
  • 消灭零回复
提交回复
热议问题