positional projection cannot be used with a literal error in mongo 4.4

前端 未结 0 1442
隐瞒了意图╮
隐瞒了意图╮ 2020-12-11 08:23

I have a query that was working with older version:

await this.model.findOne({ userEmail, \'environments.envId\': envId },{ \'environments.$\': envId })


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