[ ] Regression
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
@nestjs/typeorm
printSql() does not print out SQL at the console
printSql() Print SQL from the console
await this.photoRepository
.createQueryBuilder()
.select()
.printSql()
.getMany();
Nest version: 5.0.0
You should report this issue in the https://github.com/typeorm/typeorm repository.
Maybe it's too late, but I had the same issue and it turns out that I forgot to enable the logging in "ormconfig.json":
"logging": true
Hope it's help.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
Maybe it's too late, but I had the same issue and it turns out that I forgot to enable the logging in "ormconfig.json":
"logging": true
Hope it's help.