VARIS VONGUEA-AREE

🔥🇹🇭 Bangkok Thailand

High level experience in web design and development knowledge, producing quality work.

TypeORM🔗

https://typeorm.io/

npm install typeorm --save

Repository🔗

Repository is one of class that typeORM provides to work with database

constructor(<B @InjectRepository(User) private usersRepository: Repository<UserEntity>, ) {}

save, find, findOne, remove, update this.usersRepository.save(user)

softdelete need column deletedAt @Entity({ name: 'users', softDelete: true })

you have to inject entity to module to use it you can show log SQL in TypeOrmModule logging: true