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?
Hey 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, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024