Open utterances-bot opened 2 years ago
I wish people that write tutorials will test their code ffs
npm install mysql typeorm @nestjs/typeorm –save
<-- does not work!
npm install --save @nestjs/typeorm typeorm mysql try this definitely works
there is a problem in service.ts in step 5 that is in that id is not a property and number also please fix that and send me
@jay you right , that will cause lots of config errors. also recommend to using npm install mysql2 as this much flexible with legacy connection to new ways of connecting to mysql servers or databases
and yeah instaed of just findOne({id}), would suggest using a where clause like findOne({where: {id}})
Quick starter Nestjs CRUD Using TypeORM Mysql 💻 🎯 – @tkssharma | Tarun Sharma | My Profile
Build your First REST API CRUD App with TypeORM In this tutorial, you will learn to build your first REST API CRUD application with Nestjs…
https://tkssharma.com/nestjs-crud-using-typeorm-and-mysql/