(
entityName: EntityName<Entity>,
where: FilterQuery<Entity>,
options: FindOptions<Entity, Hint, Fields, Excludes> | FindOneOptions<Entity, Hint, Fields, Excludes>,
type: 'read' | 'update' | 'delete',
)
| 470 | } |
| 471 | |
| 472 | protected async processWhere< |
| 473 | Entity extends object, |
| 474 | Hint extends string = never, |
| 475 | Fields extends string = never, |
| 476 | Excludes extends string = never, |
| 477 | >( |
| 478 | entityName: EntityName<Entity>, |
| 479 | where: FilterQuery<Entity>, |
| 480 | options: FindOptions<Entity, Hint, Fields, Excludes> | FindOneOptions<Entity, Hint, Fields, Excludes>, |
| 481 | type: 'read' | 'update' | 'delete', |
| 482 | ): Promise<FilterQuery<Entity>> { |
| 483 | where = QueryHelper.processWhere({ |
| 484 | where, |
| 485 | entityName, |
| 486 | metadata: this.metadata, |
| 487 | platform: this.driver.getPlatform(), |
| 488 | convertCustomTypes: options.convertCustomTypes, |
| 489 | aliased: type === 'read', |
| 490 | }); |
| 491 | where = (await this.applyFilters(entityName, where, options.filters ?? {}, type, options))!; |
| 492 | where = this.applyDiscriminatorCondition(entityName, where); |
| 493 | |
| 494 | return where; |
| 495 | } |
| 496 | |
| 497 | protected async processUnionWhere<Entity extends object, Hint extends string = never>( |
| 498 | entityName: EntityName<Entity>, |
no test coverage detected