I’m using App Bridge Resource Picker to select products and their associated images. However, the picker returns image IDs in the format gid://shopify/ProductImage/{id}, but I need to update media using the productMediaUpdate GraphQL API since the productImageUpdate API is deprecated, which requires gid://shopify/ProductMedia/{id}.
Is there any direct way to map or convert the ProductImage ID to ProductMedia ID? Also, the Resource Picker does not seem to provide media IDs directly. Has anyone else encountered this issue or found a workaround? Any advice would be appreciated!