Skip to content

Commit 3eb5960

Browse files
feat(api): update via SDK Studio (#11)
1 parent d599038 commit 3eb5960

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ async function fetchAllDocuments(params) {
157157
const allDocuments = [];
158158
// Automatically fetches more pages as needed.
159159
for await (const documentGetInfoListResponse of client.documents.getInfoList({
160-
collection_name: 'collection_name',
160+
collection_name: 'example_collection',
161161
})) {
162162
allDocuments.push(documentGetInfoListResponse);
163163
}
@@ -168,7 +168,7 @@ async function fetchAllDocuments(params) {
168168
Alternatively, you can request a single page at a time:
169169

170170
```ts
171-
let page = await client.documents.getInfoList({ collection_name: 'collection_name' });
171+
let page = await client.documents.getInfoList({ collection_name: 'example_collection' });
172172
for (const documentGetInfoListResponse of page.documents) {
173173
console.log(documentGetInfoListResponse);
174174
}

0 commit comments

Comments
 (0)