Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

mutation productDelete Issue

mutation productDelete Issue

Ron21
Shopify Partner
20 0 3

Wondering why this causes "Bad Request" response:

{

  "query": "mutation {productDelete(input: {id: "gid://shopify/Product/7883881873591"}) {deletedProductId userErrors {field message} }}"  

}

 

... but this is successful:

 {
   "query": "mutation productDelete($input: ProductDeleteInput!) {productDelete(input: $input) {userErrors {field message} }}",  "variables": { "input": { "id": "gid://shopify/Product/7883881873591" } }
}

 

Replies 0 (0)