I’m having some difficulty deciding how to handle ...
# questions
g
I’m having some difficulty deciding how to handle the event for completion of an order in an eCommerce site. Each order can have multiple items with each item having its own price, quantity, discount code, etc. How do you pass all this info with the “Order Completed” event in a way that is usable later? For example if I wanna add up the quantities of an item for a specific item, or know how many purchases were made with a specific discount code. I know an alternative is to trigger a separate “Order Completed” event for each unique item, but looking to see if it’s possible to do it without that. Seems like a common use case. This is a situation where having a dictionary data type would be very helpful