I am working on an inventory system management using MongoDB,ExpressJs,ReactJs,Express, and my question is - how I can update a product quantity after completing it's order?
let me explain: if the product quantity in stock is 10 for example,then after ordering like 3 ,I want the product quantity to be 7 directly...