Skip to content

Commit 455bb5e

Browse files
docs(pagination): improve naming
1 parent cfba707 commit 455bb5e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,13 @@ List methods in the Grid API are paginated.
173173
You can use the `for await … of` syntax to iterate through items across all pages:
174174

175175
```ts
176-
async function fetchAllWorkbooks(params) {
177-
const allWorkbooks = [];
176+
async function fetchAllWorkbookListResponses(params) {
177+
const allWorkbookListResponses = [];
178178
// Automatically fetches more pages as needed.
179179
for await (const workbookListResponse of client.workbooks.list({ limit: 50 })) {
180-
allWorkbooks.push(workbookListResponse);
180+
allWorkbookListResponses.push(workbookListResponse);
181181
}
182-
return allWorkbooks;
182+
return allWorkbookListResponses;
183183
}
184184
```
185185

0 commit comments

Comments
 (0)