Can Mongoose schema properties be strings?

后端 未结 0 1699
走了就别回头了
走了就别回头了 2021-02-05 16:43

I\'m wondering if I can write the property names of a Schema model as strings.

I don\'t mean setting the property Type like this:

const ExampleSchema = new         


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