I am using storefront API for my Shopify store. And need to retrieve product metafields for my product. I already added metafields using 3rd party app(Metafields Guru).
I need to get all those metafields for product, and had been following this article. https://shopify.dev/tutorials/retrieve-metafields-with-storefront-api
{
productByHandle(handle: "xxx-handle") {
id
title
handle
productType
metafields(first: 5) {
edges {
node {
key
value
}
}
}
}
}
But I get an empty array for metafields. Not sure what I am missing here. Any help would be appreciated
