Bulk update bonanza for low-stock items

Report a typo
Hey there! This problem might be a bit unpredictable, but give it a go and let us know how you do!
An e-commerce platform needs to update multiple products after a bulk sale. Which MongoDB operation would efficiently decrease the quantity by 5 for products with less than 20 units in stock, while also adding a 'low_stock' flag?
Select one or more options from the list

Create a free account to access the full topic