Class FirestoreSaver (0.5.0)
Stay organized with collections
Save and categorize content based on your preferences.
FirestoreSaver(collection: Optional[str] = None, client: Optional[Client] = None)
Write into Google Cloud Platform Firestore
.
Methods
FirestoreSaver
FirestoreSaver(collection: Optional[str] = None, client: Optional[Client] = None)
Document Saver for Google Cloud Firestore.
delete_documents
delete_documents(
documents: typing.List[langchain_core.documents.base.Document],
document_ids: typing.Optional[typing.List[str]] = None,
) -> None
Delete documents from the Firestore database.
upsert_documents
upsert_documents(
documents: typing.List[langchain_core.documents.base.Document],
merge: typing.Optional[bool] = False,
document_ids: typing.Optional[typing.List[str]] = None,
) -> None
Create / merge documents into the Firestore database.
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-08-07 UTC.
[[["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-08-07 UTC."],[],[],null,["# Class FirestoreSaver (0.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.5.0 (latest)](/python/docs/reference/langchain-google-firestore/latest/langchain_google_firestore.document_loader.FirestoreSaver)\n- [0.4.0](/python/docs/reference/langchain-google-firestore/0.4.0/langchain_google_firestore.document_loader.FirestoreSaver)\n- [0.3.0](/python/docs/reference/langchain-google-firestore/0.3.0/langchain_google_firestore.document_loader.FirestoreSaver)\n- [0.2.1](/python/docs/reference/langchain-google-firestore/0.2.1/langchain_google_firestore.document_loader.FirestoreSaver) \n\n FirestoreSaver(collection: Optional[str] = None, client: Optional[Client] = None)\n\nWrite into Google Cloud Platform `Firestore`.\n\nMethods\n-------\n\n### FirestoreSaver\n\n FirestoreSaver(collection: Optional[str] = None, client: Optional[Client] = None)\n\nDocument Saver for Google Cloud Firestore.\n\n### delete_documents\n\n delete_documents(\n documents: typing.List[langchain_core.documents.base.Document],\n document_ids: typing.Optional[typing.List[str]] = None,\n ) -\u003e None\n\nDelete documents from the Firestore database.\n\n### upsert_documents\n\n upsert_documents(\n documents: typing.List[langchain_core.documents.base.Document],\n merge: typing.Optional[bool] = False,\n document_ids: typing.Optional[typing.List[str]] = None,\n ) -\u003e None\n\nCreate / merge documents into the Firestore database."]]