API; ADMIN API through GraphQL
Problem: Querying th a product with it’s images and also for their metafields I don’t see any of them.
I create the productImage using the REST API and it works correctly but when I query through GraphQL the product and it’s images (and metafields) I don’t see the already created one.
Did anyone solve this problem
Hey there,
Thanks for bringing this to our attention. It definitely looks to be a bug in the system, which our developers are now aware of. I’ll let you know once a fix has been implemented.
For reference, the following GraphQL query should return a product images metafields.
{
product(id: "gid://shopify/Product/#{product_id}") {
id
images(first: 10) {
edges {
node {
metafields(first: 10) {
edges {
node {
id
key
value
}
}
}
}
}
}
}
}
@atix-lbracco can you please share the X-Request-Id header for some of the GraphQL requests you are trying to make which are not returning the proper results? Thanks!