Last active
September 23, 2020 04:40
-
-
Save owenconti/0ab7a987c64ab4cef50bd392142710bc to your computer and use it in GitHub Desktop.
Fixing duplicate ID errors with typeorm-factory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const PerkCategoryFactory = new Factory(PerkCategory) | |
.sequence('name', () => faker.lorem.word()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const PerkCategoryFactory = new Factory(PerkCategory) | |
.attr('name', faker.lorem.word()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment