Fetch All PagesMost APIs hand you records 100 at a time and a cursor for the next batch. fetchAllPages(fetchPage, opts) follows that cursor for you. You…