阅读背景:

如何在sails中使用'array'和'json'这样的属性类型

来源:互联网 

Sails have support very convenient model througth Waterline, and I have used the 'array' attribute type in the way storing many string, but now I want to store more complex object, Although I can store the raw data in mongo by 'array' type, I don't know if it is safe and I want define the object type in the array, like mongoose's style. for example, I need a model "Products" and I want define it as a 'array' but the object stored in the array only model "Book", what I can do like this, but I don't think it works.Sails have support very convenient model throug




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: