From 04784d24ff297a5c3091aceab91ab5001aa23f2f Mon Sep 17 00:00:00 2001 From: Alvaro Viebrantz Date: Thu, 14 Nov 2024 12:14:19 -0400 Subject: [PATCH] docs: add comment that pagination happens automatically (#1427) Towards internal b/373431246 --- samples/queryPagination.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/samples/queryPagination.js b/samples/queryPagination.js index 88e0151f..023f53b1 100644 --- a/samples/queryPagination.js +++ b/samples/queryPagination.js @@ -33,6 +33,10 @@ function main() { const [job] = await bigquery.createQueryJob(query); // Wait for job to complete and get rows. + // The client library automatically handles pagination. + // See more info on how to configure paging calls at: + // * https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#auto-pagination + // * https://cloud.google.com/bigquery/docs/paging-results#iterate_through_client_libraries_results const [rows] = await job.getQueryResults(); console.log('Query results:');