GraphQL sortBy and multiple arguments


I would like to use sortBy with multiples arguments ? Is it possible ?

The doc said : You can specify as many fields as you want to sort your documents. But no example :frowning:


Hi @yoann, thanks for reaching out about this. Sorry for the confusion. The documentation was incorrect about this and I just updated it.

Unfortunately it isn’t currently possible to have more than one sortBy arguments, sorry. This is something that might be improved in a future version of the GraphQL API, though. I’ll let the dev team know about this so they can consider it as part of their next round of changes for the API.