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

Function importModels

  • importModels(
        globPaths: string | string[],
        modelMatch?: 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[]
    • OptionalmodelMatch: ModelMatch

    Returns Promise<ModelStatic[]>

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

Settings

Member Visibility
Documentation
  • Loading...

Generated using TypeDoc