typeorm 0.3.13-dev.a868979 → 0.3.13-dev.de1228d

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.
@@ -18,10 +18,11 @@ import { DriverUtils } from "../driver/DriverUtils";
18
18
  import { EntityNotFoundError } from "../error/EntityNotFoundError";
19
19
  import { TypeORMError } from "../error";
20
20
  import { FindOptionsUtils } from "../find-options/FindOptionsUtils";
21
- import { ApplyValueTransformers } from "../util/ApplyValueTransformers";
22
21
  import { OrmUtils } from "../util/OrmUtils";
23
22
  import { EntityPropertyNotFoundError } from "../error/EntityPropertyNotFoundError";
24
23
  import { InstanceChecker } from "../util/InstanceChecker";
24
+ import { FindOperator } from "../find-options/FindOperator";
25
+ import { ApplyValueTransformers } from "../util/ApplyValueTransformers";
25
26
  /**
26
27
  * Allows to build complex sql queries in a fashion way and execute those queries.
27
28
  */
@@ -2438,7 +2439,10 @@ export class SelectQueryBuilder extends QueryBuilder {
2438
2439
  parameterValue = where[key].value;
2439
2440
  }
2440
2441
  if (column.transformer) {
2441
- parameterValue = ApplyValueTransformers.transformTo(column.transformer, parameterValue);
2442
+ parameterValue instanceof FindOperator
2443
+ ? parameterValue.transformValue(column.transformer)
2444
+ : (parameterValue =
2445
+ ApplyValueTransformers.transformTo(column.transformer, parameterValue));
2442
2446
  }
2443
2447
  // if (parameterValue === null) {
2444
2448
  // andConditions.push(`${aliasPath} IS NULL`);