I'm using MikroOrm inside nestJs, and I added the following script inside package.json
"orm": "npx mikro-orm",
and these are the configurations
seeder: {
path: 'src/misc/db/',
defaultSeeder: 'DatabaseSeeder',
glob: '!(*.d).{js,ts}',
emit: 'ts',
fileName: (className: string) => className,
}
I need to specify a specific seeder file when writing npm run orm seeder:run --class=ClassNameSeeder
as the documentation mentioned, but I'm getting the following error
Unknown argument: ClassName
I tried also to run the following script in package.json
and see if it'll work or not but I got the same error
"db:seed": "npm run mikro-orm seeder:run --class=ClassName"
Note
The seeder class is inside misc/db/
as I added it in my configuration file.