Solved

App Metafield graphql returning null for some stores

eric12098
Tourist
6 0 7

Hello, I'm having issue with App Owned metafield. 

 

API version: 2023-07

When it started: Yesterday, 11/11/2023

 

Manage to get all the metafields successfully with the following graphql code:

 

appInstallation {
  id
  metafields(namespace: "'.$namespace.'", first: 200) {
    edges {
      node {
        id,
        key
      }
    }
  }
}

 

 

It is working fine before this. The following doesn't work for only couple of stores where the metafield is returning null although there are values.

appInstallation {
  id
  metafield(namespace: "your namespace", key: "your key") {
      value
  }
}

 

Any idea what's wrong?

Accepted Solution (1)
Liam
Shopify Staff
2731 302 783

This is an accepted solution.

Thanks! Our devs released an update so this issue should be resolved now.

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

View solution in original post

Replies 11 (11)

spoluer
Shopify Partner
1 0 1

We experience the same issue with App metafields. We can list them with Get metafields attached to an app installation query, but getting a specific metafield returns null.

We tried different API versions, including 2021-07, 2023-07 and the latest 2023-10

eric12098
Tourist
6 0 7

@spoluer I thought I'm the only one with this issue as I searched all the forums. I've created a support ticket with Shopify and sent them all the details as required. Waiting for their reply now. 

bchoward
Shopify Partner
5 0 8

Same issue here. Creating support ticket now

eric12098
Tourist
6 0 7

Thank you! I have also included this page in my support ticket as a reference

Liam
Shopify Staff
2731 302 783

Hi folks - thanks for flagging this issue on queries to metafields not working correctly. Our team are currently investigating this!

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

Liam
Shopify Staff
2731 302 783

Hi again Eric12098,

 

Can you DM me with a store URL where this is happening? 

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

eric12098
Tourist
6 0 7

Hi @Liam, sure! will DM you now

Liam
Shopify Staff
2731 302 783

This is an accepted solution.

Thanks! Our devs released an update so this issue should be resolved now.

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

eric12098
Tourist
6 0 7

Thank you so much @Liam ! I just checked, it is working now.

thekwoka
Shopify Partner
7 0 2

We are having this issue on mahigold.com

All metafield queries return null from the storefront graphql api.

wil_dev
Shopify Partner
12 0 2

Hi Liam, im having the same issue. I send a support ticket but no response...

I can get the metafields with one of my store but not with this one : https://demowil.myshopify.com/

API version: 2024-01