Pourquoi choisir Google Solutions Produits Tarifs Premiers pas Docs Assistance
Docs Assistance

@google-cloud/firestore 1.2.0 » Class: WriteResult

Property

writeTime

read-only

Timestamp

The write time as set by the Firestore servers.

Example

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

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

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.