Send feedback
Module bundle (2.19.0)
bookmark_border bookmark
Stay organized with collections
Save and categorize content based on your preferences.
Version latest keyboard_arrow_down
Classes for representing bundles for the Google Cloud Firestore API.
Classes
FirestoreBundle ( name : str )
A group of serialized documents and queries, suitable for
longterm storage or query resumption.
If any queries are added to this bundle, all associated documents will be
loaded and stored in memory for serialization.
Usage:
from google . cloud . firestore import Client , _helpers from google . cloud . firestore_bundle import FirestoreBundle db = Client () bundle = FirestoreBundle ( 'my-bundle' ) bundle. add_named_query ( 'all-users' , db . collection ( 'users' ). _query ()) bundle. add_named_query ( 'top-ten-hamburgers' , db. collection ( 'hamburgers' ). limit ( limit = 10 ), ) serialized: str = bundle . build () # Store somewhere like a Google Cloud Storage bucket for retrieval by # a client SDK.
Parameter
Name
Description
name
str
The Id of the bundle.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-14 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-14 UTC."],[],[]]