-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Following up #7, I was having a look at how to change the order of the public stream and couldn't figure it out. @jmwohl could you help, please?
I want to create an order that shows artworks without preview images last and then orders by either creation date or user likes (through a switch in the UI).
I thought it should be enough to modify the filter object of this line:
| return artwork.fetchStream({ skip }).then( |
… but the corresponding article in the Loopback doc doesn't show how to use computed properties, which I think we would need for the thumbnail order thumb_url !== ''. It also doesn't explain how to aggregate data, which we need for the user likes as they are stored in the user channels.
I found this answer on Stackoverflow mentioning Loopback Operation hooks. It appears to me that those are part of the API server and can't be used in the API client. Is that right?
Thanks.