Skip to content

Ayushk93/nestjs-mongodb-multi-tenancy

Repository files navigation

Description

NestJS framework TypeScript starter repository with MongoDB, GraphQL integration and multi-tenancy architecture.

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Multi Tenant Database Connectivity

Pass Database Name in HTTP Headers

{
  "database": "<tenant_name>"
}