A TypeScript library extending Kysely with utilities for hydrating SQL query results into rich, nested JavaScript objects. Current version 0.10.2, early release with frequent breaking changes. Unlike traditional ORMs that restrict SQL expressiveness, this library preserves full Kysely query capabilities while enabling nested joins, computed properties, mapped fields, and hydrated writes. Requires Node >=22.18.0 and Kysely ^0.28. Ships TypeScript definitions.
npm install kysely-hydrateNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates hydrating a user-post one-to-many join into nested objects using Kysely Hydrate.
Pin to exact version and review changelogs before upgrading.
Always import 'querySet' and chain methods.
Use Node 22.18.0 or later, or use a transpiler like esbuild.
Ensure project uses Kysely 0.28.x.
Keep up with GitHub releases for migration guides.
Ensure kysely-hydrate is installed (npm i kysely-hydrate) and import 'querySet' correctly. Check version >=0.1.
Run npm install kysely-hydrate
Install kysely: npm install kysely@^0.28