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.
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.
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
contact.js :-
and you can get result of populate like this :-
you get result like :-