lionixevolve/GraphQLSuiteCRM

How to get records by descending order?

Closed this issue · 2 comments

How to get records by descending order from graphql query. I tried to use order parameter with the field but it gave me records by ascending orders.

Thanks

Hi @ankitpatelinitio - just add DESC to the order field

query {
  contacts(order:"first_name desc"){
   first_name
  }
}

image

Thanks, @mrbarletta , I tried this solution and it's working fine.