Mutation for setting inventory quantity

InventorySet($input: InventorySetQuantitiesInput!) {             inventorySetQuantities(input: $input) {               inventoryAdjustmentGroup {                   createdAt                   reason                   referenceDocumentUri                   changes {                     name                     delta                   }                 }                 userErrors {                   field                   message                 }               }             }

Restrict customers to buy product more than the available quantity

There is an issue where if an item has 150 pcs left at the warehouse,you can still order 200 or more pieces through the online store. Can we make it so that people cannot add more pieces to their cart than what is actually available at the warehouse? solution: The solution to this issue is… Continue reading Restrict customers to buy product more than the available quantity