From 95ba369f5670fc7d9819e0a86faed93f74ca29ff Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 18 Jan 2025 06:11:14 +0000 Subject: [PATCH] feat(api): update via SDK Studio --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }