Reporting a bug in productReorderMedia graphql mutation

8 0 3

According to documentation, productReorderMedia endpoint variables are defined as following:/

input MoveInput {
id: ID!
newPosition: UnsignedInt64!

but when sending unsigned integer, the resopnse is:


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)

So there is a mismatch, documentation says it needs integer, but server responds saying that it needs string.
When sending string, i get resopnse with no errors, but order of media objects is not changed.

I couldn't find a proper channel for reporting a bug so im writing here

Replies 2 (2)

Shopify Staff
2731 299 769

Hi Rko_tilt,


Thanks for flagging this - I'll connect with our API development team on this and report back asap!

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit or the Shopify Web Design and Development Blog

8 0 3

Hey @Liam,
Thanks for passing the issue further.
Is there some kind of estimation maybe of when the team plans to release a fix?