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
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024