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.

Bundles use id as unique identifier however id unique-ness is not enforced across all collections #1598

@willcalderbank

Description

@willcalderbank

When adding documents to a bundle the documents id (doc.id) is used to identify the document preventing duplicates being added. However id unique-ness is not enforced across all collections, eg both collection1/doc and collection2/doc share the same id.

The code for this can be found here

private addBundledDocument(snap: DocumentSnapshot, queryName?: string): void {

Shouldnt the path be used to test for the same document being added multiple times?

Metadata

Metadata

Assignees

Labels

api: firestoreIssues related to the googleapis/nodejs-firestore API.type: questionRequest for information or clarification. Not an issue.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions