---
lang: en
title: 'API docs: repository.crudrepository.find'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/repository
permalink: /doc/en/lb4/apidocs.repository.crudrepository.find.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/repository](./repository.md) &gt; [CrudRepository](./repository.crudrepository.md) &gt; [find](./repository.crudrepository.find.md)

## CrudRepository.find() method

Find matching records

<b>Signature:</b>

```typescript
find(filter?: Filter<T>, options?: Options): Promise<(T & Relations)[]>;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  filter | [Filter](./filter.filter.md)<!-- -->&lt;T&gt; | <i>(Optional)</i> Query filter |
|  options | [Options](./repository.options.md) | <i>(Optional)</i> Options for the operations |

<b>Returns:</b>

Promise&lt;(T &amp; Relations)\[\]&gt;

A promise of an array of records found


