So I’m not too sure on this, but if I setup a webhook using the PRODUCTS_UPDATE
topic, and then specify metafieldNamespaces
, will I only receive webhooks for when any metafields against a product with the passed namespaces are updated? Or will this webhook be sent for an update of a product in general?
`mutation webhookSubscriptionCreate {
webhookSubscriptionCreate(
topic: PRODUCTS_UPDATE
webhookSubscription: {
callbackUrl: "${process.env.APP_URL}/shopify/metafield"
metafieldNamespaces: ${JSON.stringify([...currentNamespaces])}
format: JSON
}
) {
webhookSubscription {
id
}
userErrors {
field
message
}
}
}`