Download tutorial as e-book ⚡️
Loading...

Ordering

In this section we dive into implementing basic sorting functionality

The focus is on transforming the ORDER BY clause of SQL queries into a workable format within our Typescript connector.

We will integrate a new ORDER BY clause into our SQL template. This involves constructing a function, visit_order_by_elements, to interpret the order_by property from the query request. This function efficiently processes a list of order-by elements, each specifying an expression to sort by, along with the direction of sorting, either ascending or descending.

Did you find this page helpful?
Start with GraphQL on Hasura for Free
  • ArrowBuild apps and APIs 10x faster
  • ArrowBuilt-in authorization and caching
  • Arrow8x more performant than hand-rolled APIs
Promo
footer illustration
Brand logo
© 2024 Hasura Inc. All rights reserved
Github
Titter
Discord
Facebook
Instagram
Youtube
Linkedin