Sails.js query for waterline association -
in sails.js i've post model many-to-many association model called "tag" posts model module.exports = { attributes: { title: 'string', content: 'string', coverimage: 'string', owner: { model: 'user' }, tags: { collection: 'contenttag', via: 'posts', dominant: true // --- } } }; tags model module.exports = { attributes: { name: 'string', posts: { collection: 'post', via: 'tags' } } }; now want related posts same tags. i've try play around .populate('tags') , and .populate('tags',{name: ['tag1','tag2']) can't figure out how solve. sails.js waterline share | improve question asked may 15 '15 @ 14:36 ...