Update Product
Query
mutation UpdateProduct($productId: ID!, $input: ProductInput!) {
tenant {
updateProduct(productId: $productId, input: $input) {
id
name
caption
description
active
options
}
}
}
Variables
{
"productId": 1,
"input": {
"name": "iPhone 11 Pro",
"caption": "Smart phone product by Apple",
"description": "Expensive but reliable phone that's mostly used for puppy filters.",
"active": true
}
}
Response
{
"data": {
"tenant": {
"updateProduct": {
"active": true,
"caption": "Smart phone product by Apple",
"description": "Expensive but reliable phone that's mostly used for puppy filters.",
"id": "1",
"name": "iPhone 11 Pro",
"options": null
}
}
}
}
Last updated
Was this helpful?