@@ -12,19 +12,24 @@ import {
12
12
type EntityName ,
13
13
type EntityKey ,
14
14
type Loaded ,
15
+ type EntityProps ,
16
+ type ExpandProperty ,
17
+ type ExpandScalar ,
18
+ type FilterItemValue ,
19
+ type ExpandQuery ,
20
+ type Scalar ,
15
21
} from "@mikro-orm/core" ;
16
22
import DataLoader from "dataloader" ;
17
23
import { type DataloaderFind , groupFindQueries , assertHasNewFilterAndMapKey } from "./findDataloader" ;
18
- import type { EntityProps , ExpandProperty , ExpandScalar , FilterValue2 , Query , Scalar } from "@mikro-orm/core/typings" ;
19
24
20
25
export interface OperatorMapDataloader < T > {
21
- // $and?: Query <T>[];
22
- $or ?: Array < Query < T > > ;
26
+ // $and?: ExpandQuery <T>[];
27
+ $or ?: Array < ExpandQuery < T > > ;
23
28
// $eq?: ExpandScalar<T> | ExpandScalar<T>[];
24
29
// $ne?: ExpandScalar<T>;
25
30
// $in?: ExpandScalar<T>[];
26
31
// $nin?: ExpandScalar<T>[];
27
- // $not?: Query <T>;
32
+ // $not?: ExpandQuery <T>;
28
33
// $gt?: ExpandScalar<T>;
29
34
// $gte?: ExpandScalar<T>;
30
35
// $lt?: ExpandScalar<T>;
@@ -40,8 +45,8 @@ export interface OperatorMapDataloader<T> {
40
45
}
41
46
42
47
export type FilterValueDataloader < T > =
43
- /* OperatorMapDataloader<FilterValue2 <T>> | */
44
- FilterValue2 < T > | FilterValue2 < T > [ ] | null ;
48
+ /* OperatorMapDataloader<FilterItemValue <T>> | */
49
+ FilterItemValue < T > | FilterItemValue < T > [ ] | null ;
45
50
46
51
export type QueryDataloader < T > = T extends object
47
52
? T extends Scalar
0 commit comments