Skip to content

React Native - Functions

Non-hook fetch functions for use outside of components.

API Reference

FunctionDescription
getDocumentFetch a document
getDocumentDataFetch only the data part of a document
getDocumentMaybeFetch a document that might not exist
getDocumentDataMaybeFetch only the data part of a document that might not exist
getDocumentTxFetch a document as part of a transaction
getDocumentMaybeTxFetch a document that might not exist as part of a transaction
getSpecificDocumentFetch a specific document
getSpecificDocumentDataFetch only the data part of a specific document
getSpecificDocumentTxFetch a specific document as part of a transaction
getDocumentsFetch all documents in a collection query
getDocumentsDataFetch only the data of all documents in a collection query
getCollectionCountFetch the number of documents in a query

Released under the Apache-2.0 License.