Hi Sebastian,
I was just wondering if it is possible to sort by a property that is nested way down in the structure?
Example query:
{
queryResultContents (
orderby: "data/active/iv[0].data.option.en asc"
) {
etc.
I tried orderby: "data/active/iv asc"
and it sorts my collection but I later found out that it’s not sorting by the actual value but by some other value/object; not exactly sure what exactly…
I’m assuming iv[0] won’t work at all (GraphiQL confirms this)? Or some other method to try to reference the first object in the array that is nested deep in my structure?
My last resort would be to query without orderby
and handle the sorting on the client side. Or do you have any other ideas maybe that you could share?
Thanks!