Type '{ type: any; required: [true, string]; unique: true; match: (string | RegExp)[]; }' is not assignable to type 'string'

前端 未结 0 726
轻奢々
轻奢々 2021-01-01 15:12

I\'m using nodejs and typescript to build a user model. In my mongoose model I\'m trying to add a match property to the email field of the Schema but I keep getting this typ

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