Sails.js composite unique field

后端 未结 1 419
猫巷女王i
猫巷女王i 2021-01-02 02:58

This model gives me the effect I want at the expense of duplicated data and general uglyness:

//Example
var Example = {
    attributes: {
        foo: { 
            


        
相关标签:
1条回答
  • 2021-01-02 03:33

    There's no way to do this directly in sails see https://github.com/balderdashy/waterline/issues/221. The best solution is to do this directly in the db you plan to use.

    0 讨论(0)
提交回复
热议问题