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
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024