@mondart/nestjs-common-module 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@ export interface CoreFindOneServiceOption extends CoreBaseServiceOption {
6
6
  }
7
7
  export interface CoreFindOneByIdServiceOption<T> extends CoreBaseServiceOption {
8
8
  enableFirstLevelRelation?: boolean;
9
- relations?: FindOptionsRelations<T>;
9
+ relations?: FindOptionsRelations<T> | string[];
10
10
  existsCheck?: boolean;
11
11
  }
12
12
  export interface CoreFindAllServiceOption extends CoreBaseServiceOption {
@@ -15,11 +15,11 @@ export interface CoreFindAllServiceOption extends CoreBaseServiceOption {
15
15
  }
16
16
  export interface CoreFindAllWithPaginationServiceOption<T> {
17
17
  selectQueryBuilder?: SelectQueryBuilder<T>;
18
- relations?: FindOptionsRelations<T>;
18
+ relations?: FindOptionsRelations<T> | string[];
19
19
  enableFirstLevelRelation?: boolean;
20
20
  }
21
21
  export interface CoreUpdateServiceOption<T> extends CoreBaseServiceOption {
22
- relations?: FindOptionsRelations<T>;
22
+ relations?: FindOptionsRelations<T> | string[];
23
23
  enableFirstLevelRelation?: boolean;
24
24
  }
25
25
  export interface CoreBaseServiceOption {