Upserted document doesn't contain schema methods

前端 未结 0 1035
梦谈多话
梦谈多话 2021-01-22 05:40

I have a setup like this:

// user.js
const userSchema = new Schema({ ... });
userSchema.methods.someMethod = function() { ... };

In another file,

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