---
lang: en
title: 'API docs: repository.crudconnector'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.repository.crudconnector.html
---

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

[Home](./index.md) &gt; [@loopback/repository](./repository.md) &gt; [CrudConnector](./repository.crudconnector.md)

## CrudConnector interface

CRUD operations for connector implementations

<b>Signature:</b>

```typescript
export interface CrudConnector extends Connector 
```

## Methods

|  Method | Description |
|  --- | --- |
|  [count(modelClass, where, options)](./repository.crudconnector.count.md) | Count matching entities |
|  [create(modelClass, entity, options)](./repository.crudconnector.create.md) | Create a new entity |
|  [createAll(modelClass, entities, options)](./repository.crudconnector.createall.md) | Create multiple entities |
|  [delete(modelClass, entity, options)](./repository.crudconnector.delete.md) | Delete an entity |
|  [deleteAll(modelClass, where, options)](./repository.crudconnector.deleteall.md) | Delete matching entities |
|  [deleteById(modelClass, id, options)](./repository.crudconnector.deletebyid.md) | Delete an entity by id |
|  [exists(modelClass, id, options)](./repository.crudconnector.exists.md) | Check if an entity exists for the id |
|  [find(modelClass, filter, options)](./repository.crudconnector.find.md) | Find matching entities by the filter |
|  [findById(modelClass, id, options)](./repository.crudconnector.findbyid.md) | Find an entity by id |
|  [replaceById(modelClass, id, data, options)](./repository.crudconnector.replacebyid.md) | Replace an entity by id |
|  [save(modelClass, entity, options)](./repository.crudconnector.save.md) | Save an entity |
|  [update(modelClass, entity, options)](./repository.crudconnector.update.md) | Update an entity |
|  [updateAll(modelClass, data, where, options)](./repository.crudconnector.updateall.md) | Update matching entities |
|  [updateById(modelClass, id, data, options)](./repository.crudconnector.updatebyid.md) | Update an entity by id |


