From 8cbfdc5381a4e2353c81b8534947db1b8e89e0d9 Mon Sep 17 00:00:00 2001 From: Pearl C <63629092+pearl-cao@users.noreply.github.com> Date: Fri, 27 Jan 2023 22:24:45 +0800 Subject: [PATCH] Update has-many-repository.md --- .../api/database/relation-repository/has-many-repository.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/en-US/api/database/relation-repository/has-many-repository.md b/docs/en-US/api/database/relation-repository/has-many-repository.md index 0ab255d22..2ad4f7400 100644 --- a/docs/en-US/api/database/relation-repository/has-many-repository.md +++ b/docs/en-US/api/database/relation-repository/has-many-repository.md @@ -36,6 +36,7 @@ Return the number of records matching the query criteria. * `async count(options?: CountOptions)` **Type** + ```typescript interface CountOptions extends Omit, Transactionable { 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]>` **Type** + ```typescript type FindAndCountOptions = CommonFindOptions ``` @@ -90,9 +92,11 @@ Delete associated objects. Add association relationships between objects. **Signature** + * `async add(options: TargetKey | TargetKey[] | AssociatedOptions)` **Type** + ```typescript interface AssociatedOptions extends Transactionable { tk?: TargetKey | TargetKey[]; @@ -106,7 +110,7 @@ interface AssociatedOptions extends Transactionable { ### `remove()` -Remove the association with the given object. +Remove the association with the given objects. **Signature**