Hi everyone!
I just put together a query for getting some articles under a blog and I want to get all the data available. There is no problem when it comes to the title, handle, tags, seo and so on.
Still, when trying to get the metafields inserted from the admin dashboard using Metafield Guru app, the return value is an empty string or null.
Why is this happening? In 2021-07 API version metafield and metafields are both documented and no error is returned. Is there a cache problem?
Please see the code below regarding my request.
https://STORE_NAME.myshopify.com/api/2021-07/graphql.json
Headers:
X-Shopify-Storefront-Access-Token: storefront_token_value_from_private_app
{
blogs(first: 1, query: "title:'Celebrities'"){
edges{
node{
id title
articles(first:100, sortKey:PUBLISHED_AT, reverse:true){
edges{
node{
id authorV2{name firstName lastName}
title handle excerpt excerptHtml
metafield(namespace:"global", key:"buy"){key namespace value}
metafields(first:10){edges{node{key namespace value}}}
}
}
}
}
}
}
}

