Page Contents
Home > @loopback/repository > CrudRepository > count
CrudRepository.count() method
Count matching records
Signature:
count(where?: Where<T>, options?: Options): Promise<Count>;
Parameters
Parameter | Type | Description |
---|---|---|
where | Where<T> | Matching criteria |
options | Options | Options for the operations |
Returns:
Promise<Count>
A promise of number of records matched