nestjs-mongo
TypeScript icon, indicating that this package has built-in type declarations

0.14.3 • Public • Published

nestjs-mongo

NestJS Mongo is a module that provide a little orm. Build with typescript and the nodejs mongodb driver

Install FROM NPM

npm install nestjs-mongo
# or unig yarn
yarn add nestjs-mongo

Usage

An example of nestjs module that import the nestjs-mongo

// 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

CHANGELOG

TODO

  • [ ] write wiki
  • [ ] add more tests
  • [ ] add examples

Package Sidebar

Install

npm i nestjs-mongo

Weekly Downloads

25

Version

0.14.3

License

MIT

Unpacked Size

214 kB

Total Files

207

Last publish

Collaborators

  • pop-code