Skip to main content
Sorting

This article will teach you how to sort results in your GraphQL query

A
Written by Adam Fung
Updated over a month ago

The sort order (ascending vs. descending) is set by specifying _asc or _desc after the column name in the order_by argument. Example: tax_assessor_id:desc

By default, null values are returned at the end of the results. Null values can be fetched first by adding _nulls_first after the sorting order. Example: tax_assessor_id:desc_nulls_first

The full set of sorting operators can be found below

  • desc

  • desc_nulls_first

  • desc_nulls_last

  • asc

  • asc_nulls_first

  • asc_nulls_last

query orderby {
tax_assessor_v2(order_by:{tax_assessor_id:desc}) {
tax_assessor_id
gross_sq_ft
}
}

If you have any further questions please reach out to us at Support

Did this answer your question?