I can’t figure out how to create a product that is tracked when I don’t have any variant options on the product. When creating with the product set mutation:
mutation {
productSet(
input: {
title: "test"
productOptions: []
variants: [
{
price: 52.0
inventoryItem: {
cost: 0.0,
tracked: true,
}
optionValues: []
}
]
}
) {
product {
id
}
userErrors {
field
message
}
}
}
I get this error:
"Product options input is required when updating variants"
If I leave the variant out, I see no way to set the item to tracked.
What is the solution?