Here is my CODE
For Metafields I’m using the MetafieldsGuru App
When I’m doing post request to this it gives me products but with empty metafields
axios
.post(
'https://thirdwavecoffeeroasterscom.myshopify.com/api/2021-10/graphql.json',
{
query: `
query {
products(first:20, query:"tag:bean") {
edges {
node {
id
handle
title
images(first:1, maxWidth:360) {
edges {
node {
src
}
}
}
variants(first:1) {
edges {
node {
id
price
}
}
}
metafields(first: 250) {
edges {
node {
namespace
key
value
}
}
}
}
}
}
}
`
},
{
headers: {
'X-Shopify-Storefront-Access-Token':
'**********MY TOKEN*************',
'Content-Type': 'application/json'
}
}
)
ThankYou!