Hello,
Im using grapql for various tasks, and usually everything works as intended.
This time i wanted to use productReorderMedia endpoint in graphQL to reorder images on a product.
In response im getting response “OK”, but job id is null and images are not being reordered (checked manually on product page 30 minutes after calling api).
No errors in response, not sure what’s wrong.
pretty sure those are correct, but just to be sure:
Id of the product that i want to mutate:
gid://shopify/Product/
entries in moves array:
```markup
{ id = "gid://shopify/ProductImage/
Response i get is 200 OK, with cost: 10, throttle status: currentlyAvailable 1990 and null for JobId, but the order is still not changed when i check manually on shopify web page
(covered numeric id's for security reasons, but in a message im sending those are filled of course)
UPDATE:
I just noticed that newPosition type in doc is: UnsignedInt64!
and i was sending string,
however,
when sending integer, i have the following error:
```markup
Variable $moves of type [MoveInput!]! was provided invalid value for 0.newPosition (UnsignedInt64 '1' must be encoded as a string), 1.newPosition (UnsignedInt64 '2' must be encoded as a string)
I did, it turns out that reorderMedia endpoint, in “moves” needs media image ids, which are different that regular image ids (tho they point to the same resource).
To get those i had to get “media” from graphQL instead of “images”.
Existing images, status of all of them is “READY”. It’s really wierd because it happens only with some of the images, most of them work correctly, so for example in one product i have 32 images, 27 always work fine, 5 of them always return null in “image” field, even tho other fields are filled correctly (including Preview field)