GraphQL Mutation Feedback

Topic summary

• Main topic: Feedback on the Shopify Admin GraphQL 2024-10 mutation productOptionsCreate.

• Current behavior: The mutation creates product variants but does not allow setting variant price, compare-at price, or SKU within the same call. Developers must use an additional mutation to update these fields after variant creation.

• Requested change: Enable passing price, compare-at price, and SKU directly in productOptionsCreate to complete variant creation and configuration in a single API operation, reducing extra steps.

• Status: No resolution or official response noted; the suggestion is open for consideration.

• Terms: “Mutation” is a GraphQL operation that modifies data; “SKU” is a stock-keeping unit identifier; “compare-at price” is the original reference price used to display discounts.

Summarized with AI on December 13. AI used: gpt-5.

Hello Shopify Team,

API Link - https://shopify.dev/docs/api/admin-graphql/2024-10/mutations/productOptionsCreate

The “productOptionsCreate” API helps developers create variants but does not allow setting the price, compare-at price, or SKU within the same mutation. It requires an additional mutation to update these values for the variants. It should consider allowing the option to include details such as price, compare-at price, and SKU directly within this single mutation.