Skip to main content
Version: Next

SeederOptions

Configuration options for database seeders.

@see

Index

Properties

optionaldefaultSeeder

defaultSeeder?: string = ‘DatabaseSeeder’

Name of the default seeder class to run.

optionalemit

emit?: ts | js = ts | js

File extension for generated seeder files.

optionalfileName

fileName?: (className) => string = (className) => string

Custom function to generate seeder file names.


Type declaration

    • (className): string
    • Parameters

      • className: string

      Returns string

optionalglob

glob?: string = ’!(*.d).{js,ts}’

Glob pattern to match seeder files.

optionalpath

path?: string = ’./seeders’

Path to the folder with seeder files (for compiled JavaScript files).

optionalpathTs

pathTs?: string

Path to the folder with seeder files (for TypeScript source files). Used when running in TypeScript mode.