Tags:
- Admin GraphQL API
- 2025-10
productVariantsBulkCreate and productVariantsBulkUpdate mutations now validate inventoryQuantities limits
productVariantsBulkCreate and productVariantsBulkUpdate mutations now validate inventoryQuantities limitsWhat's changing?
The and mutations now enforce validation limits on inventory quantities as part of supporting the increased variant limit from 100 to 2048 variants per product.
Input Validation Limits
With the increase in maximum variants per product from 100 to 2048, the mutation now enforces a maximum limit of 50,000 inventory quantities across all variants in a single mutation. This ensures reliable performance when managing products with many variants across multiple locations.
Error response example
{
"data": {
"productVariantsBulkCreate": {
"userErrors": [{
"code": "INVENTORY_QUANTITIES_LIMIT_EXCEEDED",
"field": ["variants"],
"message": "Input contains 51200 inventory quantities, which exceeds the limit of 50000"
}],
"product": null
}
}
}
Why are we making this change?
Support for 2048 Variants
- Increased variant limit: Products can now have up to 2048 variants (previously 100)
- Reliable execution: Ensures consistent performance when managing complex products
Handling Large Inventory Updates
If you hit the 50,000 inventory quantity limit, you have several options:
- Batch your operations: Split large operations into multiple smaller mutations
- Use
: For updating inventory across many locations, use the - Use bulk mutations: For very large datasets, consider using bulk mutation operations
Related Changes
These changes are part of supporting the increased limit of 2048 variants per product. This validation complements the dynamic complexity calculation, providing both cost optimization and input validation for the
mutation to handle complex products efficiently.The
mutation now enforceslimits as well.