Builds a Firestore data bundle with results from the given document and query snapshots.
Package
@google-cloud/firestoreConstructors
(constructor)(bundleId)
constructor
(
bundleId
:
string
);
Constructs a new instance of the BundleBuilder
class
Parameter
Name
Description
bundleId
string
Properties
bundleId
readonly
bundleId
:
string
;
Methods
add(documentSnapshot)
add
(
documentSnapshot
:
DocumentSnapshot
)
:
BundleBuilder
;
add(queryName, querySnapshot)
add
(
queryName
:
string
,
querySnapshot
:
QuerySnapshot
)
:
BundleBuilder
;
build()
build
()
:
Buffer
;
Returns
Type
Description
Buffer