Page Contents

Home > @loopback/sequelize > SequelizeCrudRepository > findOne

SequelizeCrudRepository.findOne() method

Signature:

findOne(filter?: FilterWithRequired<T>, options?: AnyObject): Promise<(T & Relations) | null>;

Parameters

Parameter Type Description
filter FilterWithRequired<T> (Optional)
options AnyObject (Optional)

Returns:

Promise<(T & Relations) | null>