/**
* All I need is get all A related to array of B ids
*/
var ids = ['id1', 'id2'];
A.all({
id: {
'in': ids
}
}, function(err, data) {
console.log(err, data); // null, []
});
var usernames = ['a', 'b'];
A.all({
username: {
'in': usernames
}
}, function(err, data) {
/**
* It works!
*/
});
With latest versiion 13.0.7,
A has many B, B belongs to A.