Document

June 22, 2024 ยท View on GitHub

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.