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

@google-cloud/firestore 0.12.0 » Class: WriteResult

Property

writeTime

read-only

string

The write time as set by the Firestore servers. Formatted as an ISO-8601 string.

Example

let documentRef = firestore.doc('col/doc');

documentRef.set({foo: 'bar'}).then(writeResult => {
  console.log(`Document written at: ${writeResult.writeTime}`);
});

Method

isEqual

isEqual(other)

Returns true if this WriteResult is equal to the provided value.

Parameter

other

any type

The value to compare against.

Returns

true if this WriteResult is equal to the provided value.