I know only creates one variant so I immediately run the query to add the variants with the values I created. So maybe that’s just what you need to do?
I did confirm when I query it back to get the product the options are there. They just don’t display without variants (my guess as to what your seeing)
Thanks for testing that. When I submit the exact query I posted in my original issue this is the response I get: Is there something different you did in your createProduct mutation that enabled you to get the large/small values for the Size Option to both show up in the results body?
No, I used your exact data. My graphql query was a bit different and ran against the 2025-01 version. So maybe the query difference is what returns the different data.
mutation productCreate($input: ProductCreateInput!) {
productCreate(product: $input) {
product {
id
title
description
handle
options {
id
name
position
optionValues {
id
name
hasVariants
}
}
variants(first: 250) {
edges {
node {
id
title
price
sku
}
}
}
}
userErrors {
field
message
}
}
}