mongoose field with the name type

前端 未结 1 866
野的像风
野的像风 2020-11-29 12:58

I am trying to validate and save a Passport profile with this structure:

http://passportjs.org/guide/profile/

This is the scheme I came up with:



        
相关标签:
1条回答
  • 2020-11-29 13:51

    You need to define the field using an object:

    type: {type: String}
    
    0 讨论(0)
提交回复
热议问题