1Post.find({include: {owner: [{posts: 'images'} , 'orders']}}, function(err, posts) {
2 posts.forEach(function(post) {
3 // post.owner points to the relation method instead of the owner instance
4 var p = post.toJSON();
5 console.log(p.owner.posts, p.owner.orders);
6 });
7 //...
8});
1// Return all post owners (users), and all posts and orders of
2// each owner. The posts also include images.
3Post.find({include: {owner: [{posts: 'images'} , 'orders']}},
4 function() { /* ... */ });
1<ion-datetime displayFormat="HH:mm" [(ngModel)]="myDate" minuteValues="0,30">
2