Hey, guys! I'm trying to make a quite simple extension showing all posts of a certain user which contain images. I assume that I need to use filter and now I have this
loadResults(offset) {
return app.store.find('posts', {
filter: {
user: this.user.id(),
type: 'comment',
q: '<img'
},
page: {offset, limit: this.loadLimit},
sort: '-createdAt'
});
}
But as you can easily guess, the code doesn't work 🙂 It just shows all user's posts. How can I filter all posts containing images? I will be grateful for any hint.