Page Contents
Home > @loopback/repository > DefaultCrudRepository > findById
DefaultCrudRepository.findById() method
Signature:
findById(id: ID, filter?: FilterExcludingWhere<T>, options?: Options): Promise<T & Relations>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| id | ID | |
| filter | FilterExcludingWhere<T> | |
| options | Options |
Returns:
Promise<T & Relations>