---
lang: en
title: 'API docs: repository.crudrepository'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.repository.crudrepository.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)

## CrudRepository interface

Basic CRUD operations for ValueObject and Entity. No ID is required.

<b>Signature:</b>

```typescript
export interface CrudRepository<T extends ValueObject | Entity> extends Repository<T> 
```

## Methods

|  Method | Description |
|  --- | --- |
|  [count(where, options)](./repository.crudrepository.count.md) | Count matching records |
|  [create(dataObject, options)](./repository.crudrepository.create.md) | Create a new record |
|  [createAll(dataObjects, options)](./repository.crudrepository.createall.md) | Create all records |
|  [deleteAll(where, options)](./repository.crudrepository.deleteall.md) | Delete matching records |
|  [find(filter, options)](./repository.crudrepository.find.md) | Find matching records |
|  [updateAll(dataObject, where, options)](./repository.crudrepository.updateall.md) | Updating matching records with attributes from the data object |


