diff --git a/README.md b/README.md index ddbab11..9ab9181 100644 --- a/README.md +++ b/README.md @@ -159,7 +159,7 @@ async function fetchAllDocuments(params) { const allDocuments = []; // Automatically fetches more pages as needed. for await (const documentGetInfoListResponse of client.documents.getInfoList({ - collection_name: 'collection_name', + collection_name: 'example_collection', })) { allDocuments.push(documentGetInfoListResponse); } @@ -170,7 +170,7 @@ async function fetchAllDocuments(params) { Alternatively, you can request a single page at a time: ```ts -let page = await client.documents.getInfoList({ collection_name: 'collection_name' }); +let page = await client.documents.getInfoList({ collection_name: 'example_collection' }); for (const documentGetInfoListResponse of page.documents) { console.log(documentGetInfoListResponse); }