Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pop-code/nestjs-mongo
A nestjs module for mongo
https://github.com/pop-code/nestjs-mongo
es6 mongo mongodb mongodb-database mongodb-orm nestjs nestjs-mongo orm typescript
Last synced: about 1 month ago
JSON representation
A nestjs module for mongo
- Host: GitHub
- URL: https://github.com/pop-code/nestjs-mongo
- Owner: Pop-Code
- License: mit
- Created: 2019-04-07T16:11:01.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-07T09:07:04.000Z (over 1 year ago)
- Last Synced: 2024-10-10T06:01:04.216Z (about 1 month ago)
- Topics: es6, mongo, mongodb, mongodb-database, mongodb-orm, nestjs, nestjs-mongo, orm, typescript
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/nestjs-mongo
- Size: 4.22 MB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# nestjs-mongo
[NestJS Mongo][doc-link] is a module that provide a little orm. Build with typescript and the nodejs mongodb driver
### [Install FROM NPM][npm]
```bash
npm install nestjs-mongo
# or unig yarn
yarn add nestjs-mongo
```### Usage
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.
### Documentation
A typedoc is generated and available on github [https://pop-code.github.io/nestjs-mongo][doc-link]
### [CHANGELOG][changelog]
#### 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