Add Mongo
This commit is contained in:
@@ -22,12 +22,25 @@ import { MySqlCompanyModule } from './mysqlcompany/mysqlcompany.module';
|
||||
ConfigModule.forRoot(),
|
||||
// For ORM-MySQL
|
||||
TypeOrmModule.forRoot({
|
||||
// ---- Mongo
|
||||
// To set auth, run mongo shell: mongosh -u root -p example
|
||||
// use boilerplate_nestjs_api_crud_company
|
||||
// db.createUser( { user: "root", pwd: "example", roles: ["dbOwner"] })
|
||||
// ---
|
||||
// type: 'mongodb',
|
||||
// host: 'localhost',
|
||||
// port: 27017,
|
||||
// database: 'boilerplate_nestjs_api_crud_company',
|
||||
// username: 'root',
|
||||
// password: 'example',
|
||||
// ---- MYSQL:
|
||||
type: 'mysql',
|
||||
host: 'localhost',
|
||||
port: 23306,
|
||||
username: 'root',
|
||||
password: 'example',
|
||||
database: 'boilerplate_nestjs_api_crud_company',
|
||||
// ------
|
||||
// entities: ['dist/modules/**/*.mysql.entity{.ts,.js}'],
|
||||
autoLoadEntities: true,
|
||||
// IMPORTANT: disable sync
|
||||
|
||||
Reference in New Issue
Block a user