Page Contents
Home > @loopback/repository > CrudConnector > find
CrudConnector.find() method
Find matching entities by the filter
Signature:
find(modelClass: Class<Entity>, filter?: Filter, options?: Options): Promise<EntityData[]>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| modelClass | Class<Entity> | The model class |
| filter | Filter | The query filter |
| options | Options | Options for the operation |
Returns:
Promise<EntityData[]>
A promise of an array of entities found for the filter