Direction: Choose the correct option
Q1.
In an e-commerce cart, how might you model a user's cart in MongoDB?
Direction: Choose the correct option
Q2.
If using a separate 'carts' collection, what might each cart document contain?
Direction: Choose the correct option
Q3.
How would you add an item to a user's cart?
Direction: Choose the correct option
Q4.
How can you calculate the total price of items in a cart?
Direction: Choose the correct option
Q5.
When a user checks out, what might you do with the cart data?
