A small, simple and immutable ORM to manage relational data in your Redux store. It provides a way to define models with relationships (foreign keys, one-to-one, many-to-many) and query them using a familiar ORM-like API. The library integrates with Redux by generating reducers that manage entity state. Current stable version is 1.0.3, released occasionally with bug fixes. Key differentiators: minimalistic design, immutable state, and seamless Redux integration.
npm install redux-orm-keradNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Defines an Author model, registers it with ORM, creates a Redux reducer, and demonstrates basic creation/query.
Follow the 0.9 migration guide: https://github.com/tommikaikkonen/redux-orm/wiki/0.9-Migration-Guide
Use orm.session(state) instead of orm.models
Declare fields as static property: Book.fields = { ... }Ensure you have imported and instantiated ORM: import { ORM } from 'redux-orm'; const orm = new ORM();Call orm.register(Book) before using the model.
Ensure you pass the ORM instance that has registered models: createReducer(orm)