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?
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025