Database connection
First, we should connect to the database.
nest g mo databaseTypeOrmModule.forRoot({
type: 'postgres',
username: 'postgres',
password: 'pass123',
host: 'localhost',
port: 5432,
database: 'postgres',
autoLoadEntities: true,
})Last updated