Resource: Document
A Firestore document.
Must not exceed 1 MiB - 4 bytes.
JSON representation |
---|
{
"name": string,
"fields": {
string: {
object ( |
Fields | |
---|---|
name |
The resource name of the document, for example |
fields |
The document's fields. The map keys represent field names. Field names matching the regular expression Field paths may be used in other contexts to refer to structured fields defined here. For A simple field name contains only characters A quoted field name starts and ends with An object containing a list of |
create |
Output only. The time at which the document was created. This value increases monotonically when a document is deleted then recreated. It can also be compared to values from other documents and the Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
update |
Output only. The time at which the document was last changed. This value is initially set to the Uses RFC 3339, where generated output will always be Z-normalized and uses 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
Methods |
|
---|---|
|
Gets multiple documents. |
|
Applies a batch of write operations. |
|
Starts a new transaction. |
|
Commits a transaction, while optionally updating documents. |
|
Creates a new document. |
|
Deletes a document. |
|
Gets a single document. |
|
Lists documents. |
|
Lists all the collection IDs underneath a document. |
|
Lists documents. |
|
Partitions a query by returning partition cursors that can be used to run the query in parallel. |
|
Updates or inserts a document. |
|
Rolls back a transaction. |
|
Runs an aggregation query. |
|
Runs a query. |