Conversations about creating, managing, and using metafields to store and retrieve custom data for apps and themes.
metafields( namespace: "custom" first: 10 ) { edges { node { key value } } }
The API you are using is no longer available. I have found an alternative, and the code is as follows
query: "key:rating OR key:rating_count"
query {
metafieldDefinitions(first: 250, ownerType: PRODUCT, query: "key:rating OR key:rating_count") {
edges {
node {
name
key
}
}
}
}