Update has-many-repository.md
This commit is contained in:
parent
0b249ee261
commit
8cbfdc5381
@ -36,6 +36,7 @@ Return the number of records matching the query criteria.
|
|||||||
* `async count(options?: CountOptions)`
|
* `async count(options?: CountOptions)`
|
||||||
|
|
||||||
**Type**
|
**Type**
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
interface CountOptions extends Omit<SequelizeCountOptions, 'distinct' | 'where' | 'include'>, Transactionable {
|
interface CountOptions extends Omit<SequelizeCountOptions, 'distinct' | 'where' | 'include'>, Transactionable {
|
||||||
filter?: Filter;
|
filter?: Filter;
|
||||||
@ -51,6 +52,7 @@ Find datasets from the database with the specified filtering conditions and retu
|
|||||||
* `async findAndCount(options?: FindAndCountOptions): Promise<[any[], number]>`
|
* `async findAndCount(options?: FindAndCountOptions): Promise<[any[], number]>`
|
||||||
|
|
||||||
**Type**
|
**Type**
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
type FindAndCountOptions = CommonFindOptions
|
type FindAndCountOptions = CommonFindOptions
|
||||||
```
|
```
|
||||||
@ -90,9 +92,11 @@ Delete associated objects.
|
|||||||
Add association relationships between objects.
|
Add association relationships between objects.
|
||||||
|
|
||||||
**Signature**
|
**Signature**
|
||||||
|
|
||||||
* `async add(options: TargetKey | TargetKey[] | AssociatedOptions)`
|
* `async add(options: TargetKey | TargetKey[] | AssociatedOptions)`
|
||||||
|
|
||||||
**Type**
|
**Type**
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
interface AssociatedOptions extends Transactionable {
|
interface AssociatedOptions extends Transactionable {
|
||||||
tk?: TargetKey | TargetKey[];
|
tk?: TargetKey | TargetKey[];
|
||||||
@ -106,7 +110,7 @@ interface AssociatedOptions extends Transactionable {
|
|||||||
|
|
||||||
### `remove()`
|
### `remove()`
|
||||||
|
|
||||||
Remove the association with the given object.
|
Remove the association with the given objects.
|
||||||
|
|
||||||
**Signature**
|
**Signature**
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user