diff --git a/docs/index.html b/docs/index.html index c0f30748..cadb9d60 100644 --- a/docs/index.html +++ b/docs/index.html @@ -5513,8 +5513,8 @@

Wha ); // after fetching a page, set the returned cursor for the next page, - // or empty/null if this was the last one. - await z.cursor.set(response.nextPage); + // or an empty string if the cursor is null + await z.cursor.set(response.nextPage ?? ''); return response.items; }; diff --git a/packages/cli/README.md b/packages/cli/README.md index 56e299b2..314b437c 100644 --- a/packages/cli/README.md +++ b/packages/cli/README.md @@ -3467,8 +3467,8 @@ const perform = async (z, bundle) => { ); // after fetching a page, set the returned cursor for the next page, - // or empty/null if this was the last one. - await z.cursor.set(response.nextPage); + // or an empty string if the cursor is null + await z.cursor.set(response.nextPage ?? ''); return response.items; }; diff --git a/packages/cli/docs/index.html b/packages/cli/docs/index.html index c0f30748..cadb9d60 100644 --- a/packages/cli/docs/index.html +++ b/packages/cli/docs/index.html @@ -5513,8 +5513,8 @@

Wha ); // after fetching a page, set the returned cursor for the next page, - // or empty/null if this was the last one. - await z.cursor.set(response.nextPage); + // or an empty string if the cursor is null + await z.cursor.set(response.nextPage ?? ''); return response.items; };