react-query-firebase / react-native/firestore / getDocRef
Function: getDocRef()
ts
function getDocRef<AppModelType>(options): null | DocumentReference<AppModelType>;Defined in: react-native/firestore/utils/getDocRef.ts:26
Retrieves a document reference based on provided database options. Either reference or path.
Type Parameters
AppModelType
AppModelType extends AppModel = AppModel
Parameters
options
The options for building doc reference.
db
Module
path?
string
pathSegments?
string[]
reference?
| CollectionReference<AppModelType> | DocumentReference<AppModelType>
Returns
null | DocumentReference<AppModelType>
Returns a document reference