Page Contents

Home > @loopback/sequelize > SequelizeCrudRepository > findById

SequelizeCrudRepository.findById() method

Signature:

findById(id: ID, filter?: FilterWithRequiredExcludingWhere<T>, options?: AnyObject): Promise<T & Relations>;

Parameters

Parameter Type Description
id ID  
filter FilterWithRequiredExcludingWhere<T> (Optional)
options AnyObject (Optional)

Returns:

Promise<T & Relations>