|
|
@@ -147,8 +147,8 @@ const category_by_props = `
|
|
|
`
|
|
|
|
|
|
const update_category = `
|
|
|
- mutation updatecategory($id: ID, $img: String, $order: Int, $status: String, $updatedAt: String) {
|
|
|
- updatecategory: update_category(id: $id img: $img order: $order status: $status updatedAt: $updatedAt) {
|
|
|
+ mutation updatecategory($id: ID, $name:String, $img: String, $order: Int, $status: String, $updatedAt: String) {
|
|
|
+ updatecategory: update_category(id: $id name:$name, img: $img order: $order status: $status updatedAt: $updatedAt) {
|
|
|
result
|
|
|
category {
|
|
|
id
|
|
|
@@ -279,7 +279,6 @@ const delete_specificationStock = `
|
|
|
mutation deletespecificationStock($id: ID) {
|
|
|
deletespecificationStock: delete_specificationStock(id: $id)
|
|
|
}
|
|
|
-
|
|
|
`
|
|
|
|
|
|
const update_specificationStock = `
|
|
|
@@ -928,6 +927,7 @@ const update_product = `
|
|
|
const delete_product_by_id = `
|
|
|
mutation deleteproduct($id: ID) {
|
|
|
deleteproduct: delete_product(id: $id)
|
|
|
+ deletespecificationStock: delete_specificationStock(product_id: $id)
|
|
|
}
|
|
|
`
|
|
|
|