Class BundleBuilder (7.6.0)

Builds a Firestore data bundle with results from the given document and query snapshots.

Package

@google-cloud/firestore

Constructors

(constructor)(bundleId)

constructor(bundleId: string);

Constructs a new instance of the BundleBuilder class

Parameter
NameDescription
bundleId string

Properties

bundleId

readonly bundleId: string;

Methods

add(documentSnapshot)

add(documentSnapshot: DocumentSnapshot): BundleBuilder;
Parameter
NameDescription
documentSnapshot DocumentSnapshot
Returns
TypeDescription
BundleBuilder

add(queryName, querySnapshot)

add(queryName: string, querySnapshot: QuerySnapshot): BundleBuilder;
Parameters
NameDescription
queryName string
querySnapshot QuerySnapshot
Returns
TypeDescription
BundleBuilder

build()

build(): Buffer;
Returns
TypeDescription
Buffer