How to get records by descending order?
Closed this issue · 2 comments
ankitpatelinitio commented
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
mrbarletta commented
Hi @ankitpatelinitio - just add DESC to the order field
query {
contacts(order:"first_name desc"){
first_name
}
}
ankitpatelinitio commented
Thanks, @mrbarletta , I tried this solution and it's working fine.