How to set a sub document to be a default value to another sub document

前端 未结 0 1982
后悔当初
后悔当初 2021-01-13 23:46

I\'m working on a personal project using mongodb (mongoose) for database and I want to make the field \' createdBy \' to be the default value of the field \'assignedTo\' if

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