The title speaks for itself, I am starting to learn NestJS and I would like to know if it's possible to, for example console.log or other way, know if a connection with a database was successful.
When I run the npm run start:dev , everything compile fine but I am still not sure if I was able to connect to the database or not.
Note: I am using import { TypeOrmModule } from '@nestjs/typeorm/dist/typeorm.module';
Edit: If you have this line after running your app (on your terminal)
TypeOrmModule dependencies initialized
That means that you have successfuly estabilished a conection with your database