Is there no way to tell `seed` which file to use? ...
# prisma-client
j
Is there no way to tell
seed
which file to use? It’s a common need to have different seeds, for say local dev, tests, maybe qa, maybe some special case.
j
No it’s not possible at the moment but you could build the logic inside the seed.ts file I think
j
Interesting, thanks
👍 1
j
Feel free to open an issue if you think it should be done “natively” by Migrate 😃
j
Doing it now! I think it would be great. Would reach parity with other ORMs, and help us avoid gigantic seed files.
👍 1
a
Added a solution to your issue. See if it helps.
j
Thanks for that!