Page Contents

Home > @loopback/sequelize > SequelizeCrudRepository > getSequelizeModel

SequelizeCrudRepository.getSequelizeModel() method

Get Sequelize Model

Signature:

getSequelizeModel(entityClass?: typeof Entity & {
        prototype: T;
    }): import("sequelize").ModelCtor<Model<any, any>>;

Parameters

Parameter Type Description
entityClass typeof Entity & { prototype: T; } (Optional)

Returns:

import(“sequelize”).ModelCtor<Model<any, any>>

Sequelize Model Instance based on the definitions from entityClass