Conversations about creating, managing, and using metafields to store and retrieve custom data for apps and themes.
I'm having trouble getting metafields to work with my products on Shopify. I'm on the Basic plan, and I've tried setting up metafields, but they don't seem to be functioning correctly. Can someone help me troubleshoot this issue or provide guidance on how to properly use metafields with products on a Shopify Basic plan?
query tumbleDryProducts {
collection(handle: "states") {
handle
products(
first: 10
filters: {productMetafield: {namespace: "custom", key: "state", value: "Kerala"}}
) {
edges {
node {
id
title
metafield(namespace: "custom", key: "state"){
key
namespace
value
}
}
}
}
}
}
Hi, there
Unfortunately, there is no way to query products by metafield value or any other "custom" field value in admin API. But I think you could use tags instead.
if you use headless in storefront ,This could be correct .
So my question is you use the code in storefront or admin Graphql API?
@Eric-HAN wrote:Hi, there
Unfortunately, there is no way to query products by metafield value or any other "custom" field value in admin API. But I think you could use tags instead.
if you use headless in storefront ,This could be correct .
So my question is you use the code in storefront or admin Graphql API?