Sails js, how do we write inner join using populate
问题 Sails's populate works as Left join. I want to do as inner join, Anybody help me how we can write inner join using populate without writing raw query. I am using MYSQL adapter. 回答1: if you have for example two models user , contacts relation one-to-many you try to write something like :- first models will like this :- user.js module.exports = { schema: true, tableName: 'userdata', attributes: { anyField: { type: 'integer', required: false, size: 56, }, contacts: { collection: 'Contact', via: