AbstractReadonlycollectionThe collection the receiver is operating on.
ReadonlydocumentIDThe ID of the document this operation operates on.
AbstractevictExecutes the find operation to return the document with the matching ID.
The Document promise with the ID provided in the
findByID() call or undefined if the document was
not found.
AbstractremoveAbstractupdateUpdates the document with the matching ID.
Document values must not be set to any non-finite numbers (NaN,
Infinity, -Infinity).
A closure that gets called with the document matching the ID. If found, the document is a MutableDocument, so you can call update-related functions on it. The closure is not called if the document is not found.
An array promise of update results that describe the updates that were performed on the document.
Error if the document is not found.
This method throws and does not call the closure if the document is not found. Use updateV2() instead.
AbstractupdateUpdates the document with the matching ID.
Document values must not be set to any non-finite numbers (NaN,
Infinity, -Infinity).
A closure that gets called with the document matching the
ID. If found, the document is a MutableDocument, so you can call
update-related functions on it. If the document is not found then the value
provided to the closure will be undefined.
Optionaldocument: MutableDocumentAn array promise of update results that describe the updates that were performed on the document.
These objects are returned when using findByID() functionality on collections.
You can either call exec() on the object to get an immediate return value, or chain calls to update, evict or remove the document.
Live queries and subscriptions are only available outside of a transaction.
Not available in React Native environments.