EDIT: The issue was actually with the publication and markets, so ignore this ![]()
We noticed a bug with the productSet mutation, resulting in products not being visible on the storefront.
The following mutation
mutation productSet($input: ProductSetInput!) {
productSet(input: $input, synchronous: true) {
product {
id
}
userErrors {
field
message
}
}
}
{
"input": {
"status": "ACTIVE",
"title": "Test",
"productOptions": [
{
"name": "Title",
"values": {
"name": "Default Title"
}
}
],
"variants": [
{
"price": "1.00",
"optionValues": {
"optionName": "Title",
"name": "Default Title"
},
"requiresShipping": false
}
]
}
}
creates a new product, if we then publish the product to the online store, it is not visible and direct access results in 404. If I query /products.json it is listed.
We noticed that the templateSuffix of the resulting product is null instead of “”.
If one does explicitly set the templateSuffix to “” it does work. So there is a bug with the productSet mutation having a wrong default and the online store breaking when templateSuffix is null .