🖥️ fetchcontent (Product-Specific Content Fetchers)
fetchcontent provides asynchronous content fetching functions per product. Each function returns content in paginated chunks.
1db.cms.fetchcontent.HBHCodes2db.cms.fetchcontent.HBHTube3db.cms.fetchcontent.CodeBuddy
Example Usage
1const fetchNext = db.cms.fetchcontent.HBHCodes;3// Fetch next batch of content4const contents = await fetchNext();5console.log(contents);
Behavior
- Tracks internal pagination: userPage, channelPage, contentPage.
- Auto-advances pages when current batch is empty.
- Can resume from a given pagination index:
1await fetchNext({ user: 2, channel: 1, content: 5 });
- Designed for CMS batch processing with large datasets.