How can I add a two column unique id to the mongodb in a meteor app?

后端 未结 4 1080
滥情空心
滥情空心 2020-12-08 03:15

I am trying to create a two column unique index on the underlying mongodb in a meteor app and having trouble. I can\'t find anything in the meteor docs. I have tried from

4条回答
  •  醉话见心
    2020-12-08 03:32

    The Smartpackage aldeed:collection2 supports unique indices, as well as schema-validation. Validation will both occure on server and client (reactivly), so you can react on errors on the client.

提交回复
热议问题