w3tecch / typeorm-seeding

🌱 A delightful way to seed test data into your database.
https://www.npmjs.com/package/typeorm-seeding
MIT License
877 stars 131 forks source link

seeder should be run once like typeorm migration #205

Open shakirullah41 opened 2 years ago

shakirullah41 commented 2 years ago

when i run the cammand npm run seed:run, it run all the seed file even if it runs already once.

altanaka commented 2 years ago

I have the same issue of wanting to control the seed a little more than default run. I cannot seem to find an example of using the " --seed"," -s" argument nor see a list of parameter options and get "Unknown argument: ..." with everything I pass it (class names, file names, globs, indices etc.)

Any help with this issue would be much appreciated. Otherwise, everything seems to be working well.

jhonyjss commented 2 years ago

Guys,

Use npm run typeorm-seeding -- seed -s CreateUsers or with Yarn yarn typeorm-seeding seed -s CreateUser