Hey, im currently working on a Workflow with Shopify on GraphQL and my main problem is that after i create the product → update some infos → try to publish into the shop, i get two responses:
First one:
{
"errors": [
{
"message": "Your app doesn't have a publication for this shop.",
"locations": [
{
"line": 12,
"column": 7
}
],
"path": [
"publishablePublish",
"publishable",
"publishedOnCurrentPublication"
]
}
],
"data": {
"publishablePublish": {
"publishable": null,
"userErrors": []
}
},
"extensions": {
"cost": {
"requestedQueryCost": 10,
"actualQueryCost": 10,
"throttleStatus": {
"maximumAvailable": 2000,
"currentlyAvailable": 1990,
"restoreRate": 100
}
}
}
}
The second one, telling that worked and i can see the product on the list:
{
"json": {
"data": {
"publications": {
"edges": [
{
"node": {
"id": "gid://shopify/Publication/143495168228",
"name": "Online Store"
}
},
{
"node": {
"id": "gid://shopify/Publication/143495364836",
"name": "Point of Sale"
}
}
]
}
},
"extensions": {
"cost": {
"requestedQueryCost": 3,
"actualQueryCost": 3,
"throttleStatus": {
"maximumAvailable": 2000,
"currentlyAvailable": 1997,
"restoreRate": 100
}
}
}
},
"pairedItem": {
"item": 0
}
}
The problem is: I just need to get a success response, not two responses and one being an error!