Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

seeder should be run once like typeorm migration #205

Open
shakirullah41 opened this issue Jan 26, 2022 · 2 comments
Open

seeder should be run once like typeorm migration #205

shakirullah41 opened this issue Jan 26, 2022 · 2 comments

Comments

@shakirullah41
Copy link

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

@altanaka
Copy link

altanaka commented Feb 9, 2022

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
Copy link

Guys,

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants