TypeScript-based Node.js library (v1.0.3) for Redis object mapping, schemas, repositories, and fluent search over JSON and hashes. Supports RediSearch and RedisJSON modules. Provides strong typing, fluent search API with chaining, pagination, full-text search, and spatial queries. Requires Node >= 14 and a Redis instance with the RediSearch and RedisJSON modules. Follows the same model as Redis OM for Node.js with TypeScript declarations. Actively maintained by Redis.
npm install redis-om-typeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to Redis, defines a schema, saves an entity, and performs a fluent search.
Use 'text' for fields you need to search with .matches() and 'string' for fields you compare with .equals().
Upgrade to 0.4+ and follow the new API as documented in the README.
Ensure you are using redis-om-type and check its specific documentation.
Enable the modules in your Redis config or use Redis Stack.
Ensure you call repository = new Repository(schema, client) after client.open().
Run 'npm install redis-om-type' and import using 'import { Schema } from 'redis-om-type''.Use Redis Stack or load the RediSearch module (e.g., redis-server --loadmodule /path/to/redisearch.so).