Skip to content

Commit

Permalink
docs: add comment that pagination happens automatically (#1427)
Browse files Browse the repository at this point in the history
Towards internal b/373431246
  • Loading branch information
alvarowolfx authored Nov 14, 2024
1 parent 19204e8 commit 04784d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions samples/queryPagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:');
Expand Down

0 comments on commit 04784d2

Please sign in to comment.