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

Schema Builder

How the GraphQL schema is generated — scalars, comparisons, pagination, validation.

The schema is built with Pothos. LakeQL configures a shared builder, adds the scope-auth and validation plugins, registers the scalar and comparison types, and defines the pagination types. The generated query schema files attach to this builder, so every endpoint shares one consistent schema.

The pages below cover the builder configuration, the scalar and comparison types, pagination, and input validation.

Builder Configuration

The shared Pothos builder and its plugins.

Scalar Types

The scalar types LakeQL registers on the schema.

Comparison Types

The per-type filter input types used in queries.

Pagination

The Paging input and PageInfo type on generated queries.

Input Validation

How argument values are validated before a query runs.

Previous page

Debugging Identity

Next page

Builder Configuration