Skip to content

Latest commit

 

History

History
67 lines (38 loc) · 1.29 KB

firestore_database_document.md

File metadata and controls

67 lines (38 loc) · 1.29 KB

Document

Description

Google Cloud Firestore database Document class

class Document

Constructors

  1. 🔹 Document(const String &name = "")

A Firestore document constructor with document resource name.

Document(const String &name = "")

Params:

  • name - The resource name of the document.
  1. 🔹 Document(const String &key, T value)

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 an Values::Value object.

Functions

  1. 🔹 Document &add(const String &key, T value)

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 an Values::Value object.

  • value - The value of an Values::Value object.

  1. 🔹 void setName(const String &name)

Set the document resource name.

void setName(const String &name)

Params:

  • name - The resource name of the document.