{"repo":"Alpha018/nestjs-redisom","free":true,"listed":false,"github":"https://github.com/Alpha018/nestjs-redisom","clone":"git clone https://github.com/Alpha018/nestjs-redisom.git","description":"Seamlessly integrate Redis OM into NestJS. Define schemas with decorators, inject repositories, and unlock the power of Redis Stack JSON & Search.","language":"TypeScript","stars":19,"topics":["redis","redis-client","redis-database","lib","nestjs"],"license":"MIT","category":"databases-storage","readme_excerpt":"NestJS RedisOM A NestJS module for RedisOM, providing a structured way to use Redis Stack JSON/Search features. Description This library seamlessly integrates RedisOM into NestJS, offering: - Decorator-based Schema Definition : Define your entities using @Schema and @Prop . - Repository Injection : Inject repositories directly into your services using @InjectRepository . - Seamless Connection : Configure your Redis connection globally with forRoot or forRootAsync . Installation Quick Start 1. Define an Entity Use the @Schema() decorator to define your entity and @Prop() for properties. Extends BaseEntity to easily access the auto-generated ID. Note : For all available property decorators, indexing options, and schema definitions, see the Wiki: Defining Structures. 2. Import the Module Register RedisOmModule in your root AppModule and register your entities with forFeature . Note : For advanced connection setups, environmental validation, and asynchronous options, see the Wiki: Configuration. 3. Usage in a Service Inject the repository to save and search for entities. Note : To learn about all search capabilities and query building, see the Wiki: Searching. Advanced Usage 1. Nested Typed Objects You can define nested objects using classes and the @Prop({ type: () = Class }) syntax. This allows Redis OM to automatically generate the correct schema fields for your nested data. How it works: The library flattens nested properties into the Redis schema using the format parentPrope","default_branch":null,"files":null,"tree":[],"storefront":"/r/Alpha018","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Alpha018/nestjs-redisom/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}