loopback relation include to json
Post.find({include: {owner: [{posts: 'images'} , 'orders']}}, function(err, posts) {
posts.forEach(function(post) {
// post.owner points to the relation method instead of the owner instance
var p = post.toJSON();
console.log(p.owner.posts, p.owner.orders);
});
//...
});