Page Contents

Home > @loopback/sequelize > SequelizeCrudRepository > buildSequelizeAttributeFilter

SequelizeCrudRepository.buildSequelizeAttributeFilter() method

Get Sequelize attributes filter value from fields of loopback.

Signature:

protected buildSequelizeAttributeFilter(fields?: Fields): FindAttributeOptions | undefined;

Parameters

Parameter Type Description
fields Fields (Optional) Loopback styles fields options. eg. ["name", "age"], { id: false }

Returns:

FindAttributeOptions | undefined

Sequelize Compatible Object/Array based on the fields provided. eg. { "exclude": ["id"] }