A functional ORM building library for functional-models, providing a standardized way to create database-backed models using functional paradigms. Current stable version is 2.1.14, released periodically. Key differentiators: uses a BaseModel that can be swapped with any functional-models BaseModel, supports multiple datastore providers (DynamoDB, MongoDB/DocumentDB), and provides common query operations (save, delete, retrieve, search) with automatic serialization and nested model references. Designed for no state changes.
npm install functional-models-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Quickstart creating an ORM instance, defining a model, saving it, and logging the result.
Use `const myOrm = orm({ datastoreProvider }); const BaseModel = myOrm.BaseModel`Override `bulkInsert` in your DatastoreProvider for database-specific behavior
Remove 'id' from model definitions
Use save (create) to overwrite existing records
import { orm } from 'functional-models-orm'; const myOrm = orm({ datastoreProvider }); const BaseModel = myOrm.BaseModelEnsure you pass a valid datastoreProvider object to orm()