選用 Google 的理由 解決方案 產品 定價 開始使用 文件 支援
文件 支援

@google-cloud/firestore 0.8.2 » Class: FieldPath

Constructor

FieldPath

new FieldPath(segments)

Constructs a Firestore Field Path.

Parameter

segments

(repeatable string or Array of string)

Sequence of field names that form this path.

Method

documentId

static

documentId() returns FieldPath

A special FieldPath value to refer to the ID of a document. It can be used in queries to sort or filter by the document ID.

Returns

FieldPath