Mutations
Object: Product
createProduct
mutation {
createProduct(input: {
partnumber: "WIDGET-001"
description: "Standard Widget"
model: "W1"
list_price: 99.99
msrp: 129.99
moq: 10
tariff_surcharge: 5.00
allow_tariff: true
}) {
id
partnumber
description
created_at
}
}
Required fields: partnumber
updateProduct
mutation {
updateProduct(id: "123", input: {
description: "Updated Widget Description"
list_price: 89.99
}) {
id
partnumber
description
list_price
updated_at
}
}
deleteProduct
Soft-deletes the product (it remains in the database but is excluded from queries).
mutation {
deleteProduct(id: "123") {
id
partnumber
}
}
Method
Path