is it correct way of handling filter, i want to use filter on the product/update part:
filter = “title:* AND handle:* AND image:* AND options:*”
This filter looks valid. Note that you might still receive webhooks with options
being an empty array, as the *
only filters for null
.
@Kristen-Shopify ,But it provides me with the webhook data, even though I didn’t update those filter fields. I only updated the description and created the app metafield, and I still received the updated product data.
@Sabin_Bhattarai this may be a misconception of how the filters behave. When you edit a product, it generates a webhook with all the fields not just those that were edited. For example if you only update the product description the webhook would still include the title, price, etc. The filters operate on the entirety of the webhook payload, currently there is no way to use filters to only target things that have changed. We are aware of this limitation and it is something that we are considering to improve on in the future.