Query metafields value

hi

i’m a newbie of shopify graphql

i try to this query in my project

but it doesn’t work

how can i do this?

query Products {
products(
first: 10
query: “metafield:value:test OR metafield:value:test-3”
) {
edges {
cursor
node {
description
handle
id
title
metafield(key: “artist_name”, namespace: “custom”) {
key
namespace
value
}
}
}
}
}

Hey @chacha_S ,

Just taking a look here, I can see that you’re using a metafield in the query field. Currently metafields are not an available filter for products queries. You can see the available queries you can use here:

As you’re just getting started with the Shopify GraphQL, I’d recommend reviewing our documentation on custom data and metafields to get an understanding on what’s possible through the API.

Hope that helps!

  • Kyle G.