I’m setting up an e-commerce type app.
I’ve got three collections.
Similar to how the template food truck works.
User creates order items when adding to cart,
When checking out I create an order with all the order items that belong to that user.
My issue is with how to delete the order items after the transaction has been set as successful.
Am I’m missing something?