Details | |||
---|---|---|---|
Parameters |
|
Task<DocumentSnapshot>GetSnapshotAsync(DocumentReferencedocumentReference)
Read a snapshot of the document specified by documentReference , with respect to this transaction.
This method cannot be called after any write operations have been created.
Details | |||
---|---|---|---|
Parameters |
| ||
Returns | A snapshot of the given document with respect to this transaction. |
voidSet(DocumentReferencedocumentReference,objectdocumentData,SetOptionsoptions)
Writes to the document referred to by the provided DocumentReference
.
If the document does not yet exist, it will be created. If you pass options , the provided data can be merged into an existing document.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
voidUpdate(DocumentReferencedocumentReference,IDictionary<string,object>updates)
Updates fields in the document referred to by the provided DocumentReference
.
If no document exists yet, the update will fail.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
voidUpdate(DocumentReferencedocumentReference,stringfield,objectvalue)
Updates the field in the document referred to by the provided DocumentReference
.
If no document exists yet, the update will fail.
Details | |||||||
---|---|---|---|---|---|---|---|
Parameters |
|
voidUpdate(DocumentReferencedocumentReference,IDictionary<FieldPath,object>updates)
Updates fields in the document referred to by the provided DocumentReference
.
If no document exists yet, the update will fail.
Details | |||||
---|---|---|---|---|---|
Parameters |
|
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 2022-07-27 UTC.