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. Builder Configuration

On this page

  1. Plugins
  2. Registered Types
  3. Max Records Per Page

Builder Configuration

The shared Pothos builder and its plugins.

LakeQL exports a configured Pothos builder that the generated query schemas build on. Configuring it in one place keeps auth, validation, scalars, and pagination consistent across every endpoint.

Plugins #

The builder enables two Pothos plugins:

  • scope-auth — enforces the authorized , readPermission , and writePermission scopes on every field. See scope authorization .
  • validation — validates input arguments with Zod schemas. See input validation .

Registered Types #

On top of the plugins, the builder registers the scalar types, the comparison input types, the SortDirection enum, and the pagination types.

Max Records Per Page #

The builder reads a maximum page size from the environment. Override it at runtime with defineApiConfig's maxRecordsPerPage option, which drives this and defaults to 2000. The perPage paging argument is validated against it.

Previous page

Schema Builder

Next page

Scalar Types