Are conditional field paths possible in a MongoDB update query ($set aggregation)?

后端 未结 0 1842
不知归路
不知归路 2020-12-07 20:40

I want to update a different field depending on the value of some other parameter field. I\'m using Mongoose and Node.js.

Firstly, is this an antipattern because I\'m

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