• Preparing search index...
  • The search index is not available
Documentation
  • Documentation
  • @sequelize/core
  • index
  • importModels

Function importModels

  • importModels(globPaths, modelMatch?): Promise<ModelStatic[]>
  • Imports all model classes exported in the file matching the specified globs. Useful when setting the "models" option in the Sequelize constructor.

    Parameters

    • globPaths: string | string[]
    • Optional modelMatch: ModelMatch

    Returns Promise<ModelStatic[]>

    • Defined in packages/core/src/import-models.ts:17

Settings

Member Visibility

Theme

Documentation
  • Loading...

Generated using TypeDoc