@@ -12,19 +12,24 @@ import {
1212 type EntityName ,
1313 type EntityKey ,
1414 type Loaded ,
15+ type EntityProps ,
16+ type ExpandProperty ,
17+ type ExpandScalar ,
18+ type FilterItemValue ,
19+ type ExpandQuery ,
20+ type Scalar ,
1521} from "@mikro-orm/core" ;
1622import DataLoader from "dataloader" ;
1723import { type DataloaderFind , groupFindQueries , assertHasNewFilterAndMapKey } from "./findDataloader" ;
18- import type { EntityProps , ExpandProperty , ExpandScalar , FilterValue2 , Query , Scalar } from "@mikro-orm/core/typings" ;
1924
2025export interface OperatorMapDataloader < T > {
21- // $and?: Query <T>[];
22- $or ?: Array < Query < T > > ;
26+ // $and?: ExpandQuery <T>[];
27+ $or ?: Array < ExpandQuery < T > > ;
2328 // $eq?: ExpandScalar<T> | ExpandScalar<T>[];
2429 // $ne?: ExpandScalar<T>;
2530 // $in?: ExpandScalar<T>[];
2631 // $nin?: ExpandScalar<T>[];
27- // $not?: Query <T>;
32+ // $not?: ExpandQuery <T>;
2833 // $gt?: ExpandScalar<T>;
2934 // $gte?: ExpandScalar<T>;
3035 // $lt?: ExpandScalar<T>;
@@ -40,8 +45,8 @@ export interface OperatorMapDataloader<T> {
4045}
4146
4247export type FilterValueDataloader < T > =
43- /* OperatorMapDataloader<FilterValue2 <T>> | */
44- FilterValue2 < T > | FilterValue2 < T > [ ] | null ;
48+ /* OperatorMapDataloader<FilterItemValue <T>> | */
49+ FilterItemValue < T > | FilterItemValue < T > [ ] | null ;
4550
4651export type QueryDataloader < T > = T extends object
4752 ? T extends Scalar
0 commit comments