Simple ORM plugin for Egg.js with TypeORM integration, version 0.2.12. Provides BaseController, BaseService, and utility classes to simplify CRUD operations within Egg applications. Ships TypeScript types and supports Node >=8.0.0. Differentiator: reduces boilerplate by offering pre-built controller/service patterns with automatic parameter validation via Joi and unified response handling. Note: project appears low-activity with sparse documentation and limited downloads; evaluate stability before production use.
npm install egg-orm-tsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates complete setup: plugin enable, database config, entity definition, service with BaseService, and controller with BaseController using callService and Joi validation.
Update imports to: import { BaseController } from 'egg-orm-ts'Always provide a Joi schema as second argument, or null explicitly
Use getPage() for paginated results or apply where/limit conditions
Set synchronize: false in production and use migrations
Check compatibility with your Egg version or migrate to egg-ts-orm alternative
Install joi as dependency and pass schema or null
Use import { BaseService } from 'egg-orm-ts' instead of require('egg-orm-ts').BaseServiceRun npm install egg-orm-ts --save
Ensure entity file exists in app/entity and path is correct in config.typeorm.entities