Set mongoose field as type of either String or Number

前端 未结 0 400
鱼传尺愫
鱼传尺愫 2021-01-24 15:02

I have a field example in my database, which I want it to be either Number or String:

export const mySch = new mongoose.Sch         


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