App reviews, troubleshooting, and recommendations
Hi there,
I can't see my app-data metafields if I use graphql
but I CAN see it on my app embed block... with = > {{app.metafields.super_cart_metafields.div.value}}
/// CREATING MY METAFIELD, IT WORK const response = await admin.graphql( `#graphql mutation CreateAppDataMetafield($metafieldsSetInput: [MetafieldsSetInput!]!) { metafieldsSet(metafields: $metafieldsSetInput) { metafields { id namespace key } userErrors { field message } } }`, { variables: { metafieldsSetInput: { namespace: "super_cart_metafields", key: "div", type: "single_line_text_field", value: "F", ownerId: id } }} ) ///// RETRIEVE MY METAFIELD, IT DOESNT WORK const responseData = await admin.graphql( `#graphql query divContent($id: ID!, $namespace: String!, $key: String!) { appInstallation(id : $id) { apiKey: metafield (namespace : $namespace, key: $key){ value } } } `, {variables: { id: id, namespace : "super_cart_metafields", key: 'div' } }
And if I use the graphql app on shopify, 0 results...
I read the documentation, but it doesn't work...
https://shopify.dev/docs/api/admin-graphql/2023-10/queries/appInstallation#examples-Get_a_metafield_...
Hi @wil_dev,
To add text fields effortlessly, you can consider utilizing the Easify Product Options app—it's free and eliminates the necessity for metafields and custom coding 🤗.
Hi thank you for your response, but it's not what I search...
I need to see my app metafields that I have created with a graphQl request. I create the metafield, but impossible to see it with a request, my request is ok, anyone had the same problem?
The year-end shopping spree is around the corner! Is your online store ready for the ...
By JasonH Nov 10, 2024We recently spoke with Zopi developers @Zopi about how dropshipping businesses can enha...
By JasonH Oct 23, 2024A big shout out to all of the merchants who participated in our AMA with 2H Media: Holi...
By Jacqui Oct 21, 2024