All things Shopify and commerce
I'm using the Shopify GraphQL Admin API to update a metafield, but I'm encountering an issue where the value doesn't get updated if the metafield already has an existing value. Has anyone experienced this or know how to resolve it?
Hi @Sufi879,
Can you try again with a different return in your query? As I can see, you are returning only one metafield, try this instead and find you metafield id in response.
metafields(first: 10) {
edges {
node {
id
namespace
key
value
}
}
}
And let I see the result so I can detect more about your issue (if the metafield you are trying to update not shown)
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
Hi @BSSCommerce-B2B ,
Actually I'm returning the metafield related to this product
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025