A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
I have imported the products from another platform, and all have the created_at, with the date of the import. What I want to achieve now, is to sort collection products by newest. But that seems imposible. Also tried Admin REST API, to change the created_at, but as it is read_only it will not change. Is there any way, if I set the collection to manual sorting, by using the REST API, to set the order of the products in the collection?
Solved! Go to the solution
This is an accepted solution.
Hi,
Solution through api can be like this:
Hi,
Yes setting up the collection to manual sorting and re-ordering the products will work.
Hi,
Is there any way, that I can achieve the sorting through the API? Like setting the array with product id's that I want to be ordered?
This is an accepted solution.
Hi,
Solution through api can be like this: