Hi Shopify team!
I am Charly, Lead Engineer of the Shopify Plugin of Algolia (https://community.algolia.com/shopify/)
Our product relies heavily on the Shopify GraphQL API in order to index data in our search engine.
We are currently facing issues with the following query:
query resource_metafields($id: ID!) {
product(id: $id) {
metafield_0: metafield(namespace: "algolia", key: "grouping") { key namespace value }
metafield_1: metafield(namespace: "color_filters", key: "images") { key namespace value }
metafield_2: metafield(namespace: "multiwarehouse", key: "canonical") { key namespace value }
metafield_3: metafield(namespace: "translate", key: "en-CA") { key namespace value }
}
}
For product that have a value for metafield_0, the API is returning null
We have this bug impacting more than 50 customers right (over different and many metafields) and we had to rollback to the REST API.
I saw that a similar issue was raised on Collections recently: https://community.shopify.com/topic/556046
We plan to stop using Product.metafield and use Product.metafields instead, can you guarantee that we will not face the same issue by using the following query?
query resource_metafields($id: ID!) {
product(id: $id) {
metafields(first: 100) {
edges {
node {
key
namespace
value
}
}
}
}
}
Thank you for your time!