You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for making this library! I've found it super useful :)
Here's my use case:
A user clicks to a video in the middle of a playlist of thousands of videos. I only want to send back the page that includes their video. Then, as they scroll up the playlist, I'll send back previous pages, and as they scroll down I'll send later pages.
Not sure if an option like that exists in this project, here's how I would imagine something like that working:
const videoId = ARBITRARY_POSITION_IN_PLAYLIST
const options = {
where: { playlistId },
// some option like:
page: { includes: { id: videoId} }
};
const { docs, pages, total, currentPage } = await Videos.paginate(options);
// also needs to get the "currentPage" of the item,
// so the client knows how to grab prev/next item
Is there any type of api for something like this^^? Or will I have to write something custom?
Thanks!
-Joe
The text was updated successfully, but these errors were encountered:
Thanks for making this library! I've found it super useful :)
Here's my use case:
A user clicks to a video in the middle of a playlist of thousands of videos. I only want to send back the page that includes their video. Then, as they scroll up the playlist, I'll send back previous pages, and as they scroll down I'll send later pages.
Not sure if an option like that exists in this project, here's how I would imagine something like that working:
Is there any type of api for something like this^^? Or will I have to write something custom?
Thanks!
-Joe
The text was updated successfully, but these errors were encountered: