Strapi Graphql deep sort

Viewed 439

I would like to sort with strapi's graphql

I can do that by

{
  users (sort: "id:asc") {
    id
    username
    email
    address {
      id
      city
      state
      street
    }
  }
} 

I can sort by the first level of columns but how do I go deeper, for example address.city, because ". / :" don't work, graphql playground returns:

"errors": [
    {
      "message": "select \"users\".* from \"users\" order by \"address\".\"city\" desc limit $1 - missing FROM-clause entry for table \"address\"",
0 Answers
Related