@dngnhk/ems-data-repository-mongodb

0.0.18 • Public • Published

EMS data repository mongodb

EMS Data repository mongodb implementation

Connection argument

Use mongoose to connect MongoDB Mongoose connection

Directory structure

src/
    model/
        plugin/ - Mongoose Plugin implementation
            application.ts - Defined common behaviour of resource under application
            generic.ts - Defined generic behaviour such as created_at, updated_at, soft_delete ...etc.
            user.ts - User repository here. Define how external module access User Collection
        application.ts - Application Mongoose Model
        dimension.ts - Dimension Mongoose Model
        event.ts - Event Mongoose Model
        metric.ts - Metric Mongoose Model
        screen.ts - Screen Mongoose Model
        user.ts - User Mongoose Model

Readme

Keywords

none

Package Sidebar

Install

npm i @dngnhk/ems-data-repository-mongodb

Weekly Downloads

1

Version

0.0.18

License

MIT

Last publish

Collaborators

  • davidnhk