mutation RemoveProductFile($productId: ID!, $fileId: ID!) {
tenant {
removeProductFile(productId: $productId, fileId: $fileId) {
id
name
caption
active
files {
id
}
}
}
}
{
"productId": 1,
"fileId": 1
}
{
"data": {
"tenant": {
"removeProductFile": {
"active": true,
"caption": "Smart phone product by Apple",
"files": [],
"id": "1",
"name": "iPhone"
}
}
}
}