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