Page Contents

Home > @loopback/sequelize > SequelizeCrudRepository > buildSequelizeIncludeFilter

SequelizeCrudRepository.buildSequelizeIncludeFilter() method

Build Sequelize compatible include filter

Signature:

protected buildSequelizeIncludeFilter(inclusionFilters?: Array<InclusionFilter & {
        required?: boolean;
    }>, sourceModel?: ModelStatic<Model<T>>): Includeable[];

Parameters

Parameter Type Description
inclusionFilters Array<InclusionFilter & { required?: boolean; }> (Optional) loopback style where condition
sourceModel ModelStatic<Model<T>> (Optional) sequelize model instance

Returns:

Includeable[]

Sequelize compatible Includeable array