Closed aurelien-robineau closed 1 year ago
Hi! I need to retrieve metafields for a product, but it returns the shop metafields. My code:
const productMetafields = await shopify.metafield.list({ owner_resource: 'product', owner_id: lineItem.product_id, namespace: 'global', limit: 250 });
All the returned metafields have the owner_resource set to shop and are indeed shop metafields.
owner_resource
shop
Package version: 3.12.5.
3.12.5
Any clue on why this is happening ?
Thank you!
I just made a pull request for that issue.
See https://github.com/MONEI/Shopify-api-node#metafields. You are missing the metafield key in your options object.
metafield
I'm closing this as answered.
Hi! I need to retrieve metafields for a product, but it returns the shop metafields. My code:
All the returned metafields have the
owner_resource
set toshop
and are indeed shop metafields.Package version:
3.12.5
.Any clue on why this is happening ?
Thank you!