{"data":{"id":"ACP2E-4840","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes the issue where the quantity value requested in the 'products' GraphQL query returns null.","categories":["GraphQL","Catalog/Product"],"components":["magento/module-catalog-inventory-graph-ql","magento/module-quote-graph-ql"],"origin":"adobe-commerce-support","documentation":{"url":"https://experienceleague.adobe.com/en/docs/commerce-operations/tools/quality-patches-tool/patches-available-in-qpt/v1-1-82/acp2e-4840","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-82/acp2e-4840.md","blobSha":"cdd2290d44ac578e0d6142e2120d20686c949581","description":"The quantity field in the products GraphQL query returns null for products that are in stock and available for sale on custom inventory stocks.","stepsToReproduce":"1. Create a new source. 1. On the Admin sidebar, go to Stores > Inventory > Stock. 1. Click Add New Stock. 1. Expand Sales Channels and select the Websites where the stock is available. 1. Expand Sources, click Assign Sources, select the source that you want to assign, and click Done. 1. On the Admin sidebar, go to Catalog > Products and open an existing product in edit mode. 1. In the Sources section, assign the custom source, set Source Item Status to In Stock, enter a non-zero value for Qty, and save the product. 1. Confirm in Catalog > Products that the product shows a non-zero Salable Quantity for the website assigned to the custom stock. 1. Run the following products GraphQL query for that SKU against the store view assigned to the website that uses the custom stock: query { products(filter: { sku: { in: [\"product_dynamic_1\"] } }) { items { sku name stock_status quantity max_sale_qty } } } 1. Observe the response: { \"data\": { \"products\": { \"items\": [ { \"sku\": \"product_dynamic_1\", \"name\": \"Simple Product 1\", \"stock_status\": \"IN_STOCK\", \"quantity\": null, \"max_sale_qty\": 10000 } ] } } }","introducedInQpt":"1.1.82","createdFor":["2.4.8-p4"],"documentedRange":"2.4.8 - 2.4.8-p5","scheduledFixRelease":"2.4.10"},"files":[{"package":"magento/magento2-base","constraint":">=2.4.8 <2.4.9","path":"patches/os/ACP2E-4842_2.4.8-p4.patch","blobSha":"8a3b51713e427807c3560da8655f3f23102f44f3","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/ACP2E-4842_2.4.8-p4.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-catalog-inventory-graph-ql/Model/Resolver/QuantityResolver.php","change":"modified","package":"magento/module-catalog-inventory-graph-ql"},{"path":"vendor/magento/module-quote-graph-ql/Model/CartItem/ProductStock.php","change":"modified","package":"magento/module-quote-graph-ql"}],"packages":["magento/module-catalog-inventory-graph-ql","magento/module-quote-graph-ql"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.8-p5","2.4.8-p4","2.4.8-p3","2.4.8-p2","2.4.8-p1","2.4.8"],"magento-commerce":["2.4.8-p5","2.4.8-p4","2.4.8-p3","2.4.8-p2","2.4.8-p1","2.4.8"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false}],"applicableVersions":{"magento-community":["2.4.8-p5","2.4.8-p4","2.4.8-p3","2.4.8-p2","2.4.8-p1","2.4.8"],"magento-commerce":["2.4.8-p5","2.4.8-p4","2.4.8-p3","2.4.8-p2","2.4.8-p1","2.4.8"],"mage-os":[]},"conditions":null,"requirements":null},"_documentation":"https://magento.watch/api","_description":"Quality patch ACP2E-4840 details"}