“Cloud Firestore is a flexible, scalable database for mobile, web, and server development from Firebase and Google Cloud Platform. It keeps your data in sync across client apps through realtime listeners and offers offline support for mobile and web so you can build responsive apps that work regardless of network latency or Internet connectivity. Cloud Firestore also offers seamless integration with other Firebase and Google Cloud Platform products, including Cloud Functions”
nullValue
null
A null value.booleanValue
boolean
A boolean (true/false) value.integerValue
string (int64 format)
An integer value.doubleValue
number
A double value.timestampValue
string (Timestamp format)
A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z"
.stringValue
string
A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.bytesValue
string (bytes format)
A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.A base64-encoded string.referenceValue
string
A reference to a document. For example: projects/{project_id}/databases/{database_id}/documents/{document_path}
.geoPointValue
object (LatLng)
A geo point value representing a point on the surface of Earth.arrayValue
object (ArrayValue)
An array value. Cannot directly contain another array value, though can contain a map which contains another array.mapValue
object (MapValue)
A map value. Needed to nest fields.orderby
is not the same as orderBy
)name
, fields
, createTime
, updateTime
. Never omit them in your schemas, except as noted in the CREATE RECORD (POST) method.fields
key is an object with properties that have your actual data in objects with the name of your fields with a pair key:value
, where key
will denote the data type.mapValues
.id
assigned by Firestore:?orderBy=
your_field_name
?orderBy=
your_field_name
desc
?documentId={
id
}
{
"structuredQuery": {
"from": [{
"collectionId": "",
}],
"select": {
"fields": [{
"fieldPath": "",
}],
},
"where": {
"fieldFilter": {
"field": {
"fieldPath": "",
},
"op": "",
"value": {
"stringValue": "",
},
},
},
};
LESS_THAN
LESS_THAN_OR_EQUAL
GREATER_THAN
GREATER_THAN_OR_EQUAL
EQUAL
ARRAY_CONTAINS
IN
ARRAY_CONTAINS_ANY