Workaround for projection issue in mongo?

前端 未结 0 1420
傲寒
傲寒 2021-02-05 12:34

We have project where we used projection like this:

const filter = { id };
const projection = {
  providers: { $elemMatch: { providerId: ObjectId(providerId) } },         


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