Page Contents

Home > @loopback/repository > DefaultCrudRepository > findById

DefaultCrudRepository.findById() method

Signature:

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

Parameters

Parameter Type Description
id ID  
filter Filter<T>  
options Options  

Returns:

Promise<T & Relations>