Constructor
new WriteResult(_writeTime)
Parameters:
Name | Type | Description |
---|---|---|
_writeTime |
The time of the corresponding document write. |
- Source:
Members
(readonly) writeTime :Timestamp
The write time as set by the Firestore servers.
- Source:
Example
let documentRef = firestore.doc('col/doc');
documentRef.set({foo: 'bar'}).then(writeResult => {
console.log(`Document written at: ${writeResult.writeTime.toDate()}`);
});
Methods
isEqual(other)
Returns true if this WriteResult
is equal to the provided value.
Parameters:
Name | Type | Description |
---|---|---|
other |
* |
The value to compare against. |
- Source: