How to use association in sails.js + mongodb?

一个人想着一个人 提交于 2019-12-12 01:04:05

问题


In my case fetching data from two collection usind one id to use another id data not coming properly.


回答1:


You can use the associations in the Sails.js v0.10. npm install sails@git://github.com/balderdashy/sails.git#v0.10

For the Mongo-db
npm install sails-mongo@git://github.com/balderdashy/sails-mongo.git#v0.10

and here is the documentation.. https://github.com/balderdashy/sails-docs/blob/master/reference/ModelAssociations.md



来源:https://stackoverflow.com/questions/21545142/how-to-use-association-in-sails-js-mongodb

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!