Apply unique only inside array or sub-document mongoose

后端 未结 0 1650
[愿得一人]
[愿得一人] 2021-02-06 09:10

Hope you are doing good.

I have a schema like this:

const Person = new mongoose.Schema({
  username: {
    type: String,
    required: [true, "Name is         


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