Creating Automatic ID in Mongoose Schema

后端 未结 0 966
生来不讨喜
生来不讨喜 2020-12-14 22:40

I have the current member for my schema

id: {
  type: String,
  required: true,
  max: 18,
  unique: true,
  lowercase: true,
  set: GenerateID
},


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