We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfba707 commit 455bb5eCopy full SHA for 455bb5e
1 file changed
README.md
@@ -173,13 +173,13 @@ List methods in the Grid API are paginated.
173
You can use the `for await … of` syntax to iterate through items across all pages:
174
175
```ts
176
-async function fetchAllWorkbooks(params) {
177
- const allWorkbooks = [];
+async function fetchAllWorkbookListResponses(params) {
+ const allWorkbookListResponses = [];
178
// Automatically fetches more pages as needed.
179
for await (const workbookListResponse of client.workbooks.list({ limit: 50 })) {
180
- allWorkbooks.push(workbookListResponse);
+ allWorkbookListResponses.push(workbookListResponse);
181
}
182
- return allWorkbooks;
+ return allWorkbookListResponses;
183
184
```
185
0 commit comments