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

Predicates

Let's dive deeper into enhancing our SQLite database connector by implementing predicates that convert into WHERE clauses in the generated SQL.

Building on the foundation established in the previous session, this installment focuses on interpreting and translating the where property of the query request into meaningful SQL WHERE clauses.

The tutorial demonstrates how to handle various predicate expressions, including logical expressions like AND, OR, and NOT, as well as comparison operator expressions. We emphasize the visitor design pattern for recursively building the WHERE clause and ensuring the correct handling of query parameters.

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