A NestJS module that provide a simple mongodb orm like
npm install nestjs-mongo[NestJS Mongo][doc-link] is a module that provide a little orm. Build with typescript and the nodejs mongodb driver
``bash`
npm install nestjs-mongoor unig yarn
yarn add nestjs-mongo
An example of nestjs module that import the nestjs-mongo
`ts
// module.ts
import { Module } from '@nestjs/common';
import { MongoModule } from 'nestjs-mongo';
@Module({
imports: [
MongoModule.forRootAsync({
imports: [],
useFactory: (config: ConfigService) => ({
uri: config.mongoUri
}),
inject: [MyConfigService]
})
]
})
export class MyModule {}
``
....More coming soon.
A typedoc is generated and available on github [https://pop-code.github.io/nestjs-mongo][doc-link]
#### TODO
- [ ] write wiki
- [ ] add more tests
- [ ] add examples
[npm]: https://www.npmjs.com/package/nestjs-mongo
[doc-link]: https://pop-code.github.io/nestjs-mongo
[changelog]: https://github.com/Pop-Code/nestjs-mongo/blob/master/CHANGELOG.md