How do you implement optimistic locking with TypeORM to prevent lost updates in NestJS? | Database and ORM | NestJS Interview Questions | NextRound.in