A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Hi together,
I upgraded from v 2024-01 to 2024-10 (with 2024-07 the same issue) and this productUpdate mutation request is executing successful but the changes are not applied. You can see it on the product title. I added the suffix "wwwx" but how you can see in the response the title suffix "xx" remains. Also all changes to all other field don't have any effect.
What I'm doing wrong?
Request => POST: https://xyz.myshopify.com/admin/api/2024-10/graphql.json { "query": "mutation productUpdate($input: ProductInput!) { productUpdate(input: $input) { product { id title variants(first: 1) { edges { node { id } } } } } }", "variables": { "input": { "id": "gid://shopify/Product/9604593680704", "status": "ACTIVE", "title": "E-Bike Rücklicht Tretlock LS 631, DUO TOP, 6-12Vwwwx", "vendor": "Zefal", "descriptionHtml": "...", "seo": { "title": "E-BIKE RUECKLICHT TRELOCK LS 631, DUO TOP, 6-12V", "description": null }, "metafields": [ { "namespace": "custom", "key": "akkulaufzeit", "value": "abcd" } ], "collectionsToJoin": [ "gid://shopify/Collection/472200610112" ] } } } Response => OK { "data": { "productUpdate": { "product": { "id": "gid://shopify/Product/9604593680704", "title": "E-Bike Rücklicht Tretlock LS 631, DUO TOP, 6-12Vxx", "variants": { "edges": [ { "node": { "id": "gid://shopify/ProductVariant/49746622054720" } } ] } } } }, "extensions": { "cost": { "requestedQueryCost": 13, "actualQueryCost": 13, "throttleStatus": { "maximumAvailable": 2000.0, "currentlyAvailable": 1987, "restoreRate": 100.0 } } } }
The reason was the metafields. upgrade with its Id works.
Two questions:
1. Is it a bug, that because of this no other changes applying without any error message
2. is it possible to upgrade metafields identified by namespace and key