Hi Team,
I am trying to update the images for Shopify products and trying to update those images with certain positions.
I was able to update the image using the “productImageUpdate” mutation.
I tried using the “productReorderMedia” mutation, but it is not updating the positions or reordering the images.
Can anyone help me with this?
Below is the sample query and mutation I am using.
Mutation -
mutation productUpdateMedia($media: [UpdateMediaInput!]!, $productId: ID!) {
productUpdateMedia(media: $media, productId: $productId) {
media {
alt
}
}
}
Input Variables -
{
“id”: “”,
“moves”: [
{
“id”: “”,
“newPosition”: “”
}
]
}
Best Regards,
Prajakta