Add vendor in product_update

Hi there.
I am currently testing product_create and product_update mutations, specifically in regards to vendor and vendor price.

In product_create, the vendor is added, as is the price. All perfect.

In product_update, the vendor price is updated only if vendor is currently present. However, if the vendor has not been added to the product prior to the mutation, it will not add the vendor.

Is there a way to add a vendor via product_update?

Hi @Csraspini!
That is correct, for the product_update mutation you will only be able to modify information for an existing vendor.
To be able to add a new vendor you will need to create the product on the vendor, with the vendor_add_product mutation, something like this:

mutation {
    data: {
      vendor_id: "333403"
      sku: "1122334469"
      manufacturer_sku: "1122334469"
      price: "2.00"
  ) {

Let me know if this doesn’t help.
Thanks in advance!

Hi @tomasw,
Thank you for clearing that up for me.


1 Like