Google Cloud Firestore database Document class
class Document
A Firestore document constructor with document resource name.
Document(const String &name = "")
Params:
name
- The resource name of the document.
A Firestore document constructor with Values::Value
object. See Firestore Value class and functions.
Document(const String &key, T value)
Params:
-
key
- The key of an object. -
value
- The value of anValues::Value
object.
Add the Values::Value
object to Firestore document. See Firestore Value class and functions.
Document &add(const String &key, T value)
Params:
-
key
- The key of anValues::Value
object. -
value
- The value of anValues::Value
object.
Set the document resource name.
void setName(const String &name)
Params:
name
- The resource name of the document.