Skip to main content

Dynamic complexity cost for productCreate and productUpdate mutations

The productCreate and productUpdate mutations now use dynamic complexity costing to more accurately reflect the actual computational cost of operations.

What's changing

With the release of Dynamic Complexity, the productCreate and productUpdate mutations will now have a base cost of 10-points, and additional points will be calcuated based on the complexity of the input.

  • Base cost: 10 points
  • Per product metafield: 0.4 points
  • Per product media: 1.9 points

The total complexity is calculated as:

10 +
  (product_metafields × 0.4) +
  (product_media × 1.9)

Migration guidance

For most apps, no changes are required.

For apps working with high-complexity products exceeding the 1000-point single query limit:

Was this section helpful?