Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

listDocuments autoPaginate warning/error #2335

@mlahp7

Description

@mlahp7

Environment details

  • OS: Mac
  • Node.js version: v22.5.1
  • npm version: 10.8.2
  • @google-cloud/firestore version: 7.11.0

Steps to reproduce

  1. Call the method listDocuments on a collection
  2. Check your logs to see warning
    I've created a test repo to easily reproduce: https://github.com/Damotech/firestore-list-documents-warning

This isn't a major issue, we noticed it recently through the use of firebase-admin/firestore. In our production environment we are seeing them as errors so we get alerted about them once in a while. Though running the test-repo code alone, we are seeing them as warnings.

The warning stems from another lib, here is the snippet we see:
(node:1) AutopaginateTrueWarning: Providing a pageSize without setting autoPaginate to false will still return all results. See https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#auto-pagination for more information on how to configure manual paging

Thanks!

Metadata

Metadata

Assignees

Labels

api: firestoreIssues related to the googleapis/nodejs-firestore API.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions