Interface to iterate through results from API endpoints that return results in pages. Use in one of three ways:
await request.exec() == <array>
await request.nextPage() == { current, total, items: <array> }
for await (let hit of request) { }
Supports iterating through results using for await...
MDN Docs
Go through all pages of results and return as an array. TIP: Use the {maxResults} option to limit the maximum number of results
Get the next page of results from API
Interface to iterate through results from API endpoints that return results in pages. Use in one of three ways:
await request.exec() == <array>
await request.nextPage() == { current, total, items: <array> }
for await (let hit of request) { }