LakeQL
  • Overview
Server Setup
  • Create Server
  • Define Config
  • Yoga Configuration
  • createLakeQLApp
Authentication
  • Authorization Model
  • JWT Authentication
  • Permissions
  • Scope Authorization
  • Trino User Impersonation
  • Debugging Identity
Schema Builder
  • Builder Configuration
  • Scalar Types
  • Comparison Types
  • Pagination
  • Input Validation
Customization
  • Custom Queries & Mutations
  • Extending Core
  • CORS Configuration
  • Error Handling
  • API Reference
GitHub
LakeQL
  1. API
  2. Schema Builder
  3. Comparison Types

Comparison Types

The per-type filter input types used in queries.

For each scalar, the builder generates a comparison input type. It defines the operators available when you filter a field of that type. Generated query schemas use these as the field types inside a filter argument.

Comparison typeApplies to
StringFieldComparisonString columns
IntFieldComparisonInt columns
FloatFieldComparisonFloat columns
BooleanFieldComparisonBoolean columns
DateFieldComparisonDate columns
DateTimeFieldComparisonDateTime columns
IDFieldComparisonID columns

Each comparison type exposes only the operators that make sense for its scalar:

ScalarOperators
Stringeq, neq, like, notLike, in, notIn
Int, Floateq, neq, lt, lte, gt, gte, in, notIn
IDeq, neq, in, notIn
Date, DateTimeeq, neq, lt, lte, gt, gte (no in/notIn)
Booleanis, isNot only

So a Date filter has no in, and a Boolean filter uses is/isNot rather than eq/neq. These operators map to the query-builder field operators that become the SQL WHERE clause.

Previous page

Scalar Types

Next page

Pagination