Adding a unique constraint on mongoose schema after the fact

前端 未结 0 1584
误落风尘
误落风尘 2020-12-04 00:59

I have a mongoose schema where I would like to add a unique constraint (and index) to a clone of the schema after it has been instantiated.

The reason I clone the sch

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