Details
-
Task
-
Resolution: Won't Do
-
Minor - P4
-
None
Description
Description
For example, in the Inventory Management document the "Add an Item to a Shopping Cart" operation rolls back the cart update if there is not adequate inventory.
I believe the first update, which adds the line item, can be aborted with a session transaction:
https://docs.mongodb.com/manual/core/transactions/index.html