Page Contents

Home > @loopback/repository > DefaultCrudRepository > findOne

DefaultCrudRepository.findOne() method

Signature:

findOne(filter?: Filter<T>, options?: Options): Promise<T | null>;

Parameters

Parameter Type Description
filter Filter<T>  
options Options  

Returns:

Promise<T | null>