@haorama/nestjs-tg
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

Nestjs Typegoose

Typegoose module for nestjs

it used almost same behavior as @nestjs/mongoose

Installation

npm install mongoose @typegoose/typegoose @haorama/nestjs-tg

yarn add mongoose @typegoose/typegoose @haorama/nestjs-tg

pnpm add mongoose @typegoose/typegoose @haorama/nestjs-tg

Usage

import { Module } from "@nestjs/common";
import { TypegooseModule } from "@haorama/nestjs-tg";

@Module({
  imports: [
    TypegooseModule.forRoot(
      "mongodb://localhost:27017/test",
    ),
  ],
})
export class AppModule {}

Todos

  • Test using different / custom connectionName

Readme

Keywords

none

Package Sidebar

Install

npm i @haorama/nestjs-tg

Weekly Downloads

9

Version

0.2.0

License

MIT

Unpacked Size

29.1 kB

Total Files

31

Last publish

Collaborators

  • mlazuardy