FQLx Micro ORM provides a lightweight, type-safe layer over Fauna's FQLx API. Version 2.4.0 is current, with a stable release cadence. It leverages Zod for runtime validation and TypeScript generics to enforce query correctness at compile time. Unlike raw Fauna queries, it offers schema-driven models, automatic type inference, and reduced boilerplate. Requires Fauna ^1.0.0 and Zod ^3.0.0 as peer dependencies. Best suited for TypeScript projects using Fauna.
npm install fqlx-micro-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creating a typed model with Zod schema and performing find/create operations.
Install Fauna v1.x: npm install fauna@^1.0.0
Refer to CHANGELOG for breaking changes.
Ensure the schema variable is declared before passing to createModel.
Use import syntax and Node 18+.
npm install fauna@^1.0.0
Use import { createModel } from 'fqlx-micro-orm'Replace require() with import statements.