Mutation updatevariant productVariantUpdate No longer works

Hi, Code what has worked for months seems to have stopped working in the last 7-10 days, specifically mutation{productVariantUpdate…. returns “Field ‘productVariantUpdate’ doesn’t exist on type 'Mutation” - I’ve had a look on the Changelog and can’t see that such a change has been made - I’m probably missing something as I’m pretty rusty with this stuff but would be grateful if someone can point me in the right direction.

Hey, what API version are you using?

I believe this mutation has been deprecated for a while, as I can’t see it in 2025-01.
There is a bulk endpoint available and other product set methods that might be of use

Thanks for that - Yes - I was on an old version, I guess they pulled it recently and don’t mention such things in the change log.

1 Like

Yeah you have to check the graphql docs for this.

Although it will mention it in the Partner dashboard, or if a custom app in there in Shopify Admin if you are calling deprecated APIs and versions.

You can also use tools to check your queries against the graphql schema, for example I made one for ESlint and javascript which will flag any deprecations https://www.npmjs.com/package/eslint-plugin-pimsical-shopify-graphql

Appreciate the tips. Thanks