React Native Firebase
Documentation
GitHub
npm
Preparing search index...
@react-native-firebase/firestore
types/firestore
Transaction
Class Transaction
Hierarchy (
View Summary
)
LiteTransaction
Transaction
Index
Constructors
constructor
Methods
delete
get
set
update
Constructors
constructor
new
Transaction
()
:
Transaction
Returns
Transaction
Methods
delete
delete
<
AppModelType
,
DbModelType
extends
DocumentData
>
(
documentRef
:
DocumentReference
<
AppModelType
,
DbModelType
>
,
)
:
this
Type Parameters
AppModelType
DbModelType
extends
DocumentData
Parameters
documentRef
:
DocumentReference
<
AppModelType
,
DbModelType
>
Returns
this
get
get
<
AppModelType
,
DbModelType
extends
DocumentData
>
(
documentRef
:
DocumentReference
<
AppModelType
,
DbModelType
>
,
)
:
Promise
<
DocumentSnapshot
<
AppModelType
,
DbModelType
>
>
Type Parameters
AppModelType
DbModelType
extends
DocumentData
Parameters
documentRef
:
DocumentReference
<
AppModelType
,
DbModelType
>
Returns
Promise
<
DocumentSnapshot
<
AppModelType
,
DbModelType
>
>
set
set
<
AppModelType
,
DbModelType
extends
DocumentData
>
(
documentRef
:
DocumentReference
<
AppModelType
,
DbModelType
>
,
data
:
WithFieldValue
<
AppModelType
>
,
)
:
this
Type Parameters
AppModelType
DbModelType
extends
DocumentData
Parameters
documentRef
:
DocumentReference
<
AppModelType
,
DbModelType
>
data
:
WithFieldValue
<
AppModelType
>
Returns
this
set
<
AppModelType
,
DbModelType
extends
DocumentData
>
(
documentRef
:
DocumentReference
<
AppModelType
,
DbModelType
>
,
data
:
PartialWithFieldValue
<
AppModelType
>
,
options
:
SetOptions
,
)
:
this
Type Parameters
AppModelType
DbModelType
extends
DocumentData
Parameters
documentRef
:
DocumentReference
<
AppModelType
,
DbModelType
>
data
:
PartialWithFieldValue
<
AppModelType
>
options
:
SetOptions
Returns
this
update
update
<
AppModelType
,
DbModelType
extends
DocumentData
>
(
documentRef
:
DocumentReference
<
AppModelType
,
DbModelType
>
,
data
:
UpdateData
<
DbModelType
>
,
)
:
this
Type Parameters
AppModelType
DbModelType
extends
DocumentData
Parameters
documentRef
:
DocumentReference
<
AppModelType
,
DbModelType
>
data
:
UpdateData
<
DbModelType
>
Returns
this
update
<
AppModelType
,
DbModelType
extends
DocumentData
>
(
documentRef
:
DocumentReference
<
AppModelType
,
DbModelType
>
,
field
:
string
|
FieldPath
,
value
:
unknown
,
...
moreFieldsAndValues
:
unknown
[]
,
)
:
this
Type Parameters
AppModelType
DbModelType
extends
DocumentData
Parameters
documentRef
:
DocumentReference
<
AppModelType
,
DbModelType
>
field
:
string
|
FieldPath
value
:
unknown
...
moreFieldsAndValues
:
unknown
[]
Returns
this
update
<
AppModelType
,
DbModelType
extends
DocumentData
>
(
documentRef
:
DocumentReference
<
AppModelType
,
DbModelType
>
,
fieldOrUpdateData
:
string
|
FieldPath
|
UpdateData
<
DbModelType
>
,
value
?:
unknown
,
...
moreFieldsAndValues
:
unknown
[]
,
)
:
this
Type Parameters
AppModelType
DbModelType
extends
DocumentData
Parameters
documentRef
:
DocumentReference
<
AppModelType
,
DbModelType
>
fieldOrUpdateData
:
string
|
FieldPath
|
UpdateData
<
DbModelType
>
Optional
value
:
unknown
...
moreFieldsAndValues
:
unknown
[]
Returns
this
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
delete
get
set
update
Documentation
Documentation
GitHub
npm
React Native Firebase
Loading...