I’m in the process of finalizing a REST to GraphQL migration for an app that deals with a lot of product syncing via both API requests to Shopify and Webhook payloads back to our app. I’m keeping track of the relevant Media ids when creating products so that I can maintain a relationship to the file that was used. The ProductCreate mutation returns a “MediaImage” gid while the file is still being processed. The resulting product/update webhooks however reference “images” with “ProductImage” gid instead of media. There does not seem to be a way to tie those two objects together other than comparing the webhook image.src and media.image.url (or media.preview.image.url) which would require extra GraphQL requests because the url isn’t known until after the ProductCreate mutation call is completed.
With Product.images being deprecated, is there a plan to easily tie the image.id and media.id together or include media.id in webhook payloads?