How can I set a virtual on a subdocument in mongoose that is based on attributes of the subdocument?

前端 未结 0 1430
小鲜肉
小鲜肉 2020-12-12 19:37

This is part of my user schema:

const userSchema: Schema = new Schema({
  profile: {
    firstName: String,
    lastName: String,
    email: String,
    profi         


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