Get a single document
Last updated
Last updated
This action performs a query to get a single document from a Firestore collection, from a given ID.
The name or ID of the collection you want to get the document from.
The ID of the document you want to get data from.
The name or path (in dot notation) of the field you want to extract from the document.
For instance, if you you want to extract the content of the field "description" on the document, that's the name you should put on this setting.
If the field is of type Map, you can use "dot notation" to extract the value of a specific key on the map. In the example below, a field of name "links" has two keys, "pt-br" and "en-us". To get the value from the "pt-br", the Field would be "links.pt-br".
If you don't specify a path and only provide "links" as a path, the entire Map JSON structure can be used as a text. This JSON text can be used in another Data Extractor to get specific fields from it too.
Choose between the Bubble's basic data types, so that the value of the Field you're extracting can be translated to it.
Some data types on Firestore must be treated as texts on Bubble if you want to display them or use them elsewhere, like "Maps" or "References".
The document JSON structure as text.
The values of each field you chose to retrieve from the document.