I am using Loopback3.
Is there a proper way of getting related values without having to nest them?
The following code is just a sample for an idea that I would like to happen:
function getRelatedModel(){
var items;
relatedModel.find({}, function(err,res){
items = res;
});
return items;
}
//OR
var items = relatedModel.find();