Schema Documentation

deleteProduct

Description

The deleteProduct mutation

Response

Returns a DeleteProductPayload

Arguments
NameDescription
input - DeleteProductInput! Input for the deleteProduct mutation

Example

Query
mutation deleteProduct($input: DeleteProductInput!){  deleteProduct(input: $input){    product {      ...ProductFragment    }clientMutationIddeletedId  }}
Variables
{"input":DeleteProductInput}
Response
{"data":{"deleteProduct":{"product":Product,"clientMutationId":"xyz789","deletedId":4}}}