What do you think is wrong with this particular block of code? async function createEntity(name: string) { const existing = await this.userRepo.findOne({ where: { name } }); if (existing) throw new ConflictException('Name already exists'); awai...
blog.alanvarghese.me3 min readNo responses yet.