Fixing duplicate ID errors with typeorm-factory July 9th, 2020 under TypeScript You need to pay close attention when creating factories with typeorm-factory.