delete method
- DocumentReference<
Object?> docRef
Queues a delete operation for the given document.
Parameters:
docRef: The document reference to delete.
Returns: The Transaction instance for chaining.
Example:
transaction.delete(docRef);
Implementation
Transaction delete(DocumentReference docRef) {
if (__status == -1) {
throw Utils.oracledbErrorHandler(400, OracledbErrorMessages.transactionEnded, null);
}
__operations.add({
"method": "delete",
"docRef": docRef,
"data": null,
"options": null,
"version": __versions[docRef.path]
});
return this;
}