productSet - creating new product every time

Not sure where I’m going wrong, but I’m passing identifier.id in productSet to update the product, yet every time it keeps creating a new product.

Is there anything else I may be missing here which causes it to create a product rather than update?

1 Like

Hey @Luke, can you share an example of the mutation you are making? I just tested with a simple mutation like below and it was working as expected.

mutation {
  productSet(
    synchronous: true
    identifier: {
      id: "gid://shopify/Product/YOUR_EXISTING_ID"
    }
    input: {
      title: "Updated Title"
    }
  ) {
    product {
      id
      title
    }
    userErrors {
      field
      message
    }
  }
}