diff --git a/src/entity-manager/EntityManager.ts b/src/entity-manager/EntityManager.ts index c45be6fd8..dc44c69c3 100644 --- a/src/entity-manager/EntityManager.ts +++ b/src/entity-manager/EntityManager.ts @@ -971,7 +971,7 @@ export class EntityManager { /** * Checks whether any entity exists with the given options. */ - exists( + async exists( entityClass: EntityTarget, options?: FindManyOptions, ): Promise { @@ -1002,7 +1002,7 @@ export class EntityManager { * Counts entities that match given options. * Useful for pagination. */ - count( + async count( entityClass: EntityTarget, options?: FindManyOptions, ): Promise { @@ -1020,7 +1020,7 @@ export class EntityManager { * Counts entities that match given conditions. * Useful for pagination. */ - countBy( + async countBy( entityClass: EntityTarget, where: FindOptionsWhere | FindOptionsWhere[], ): Promise { @@ -1144,7 +1144,7 @@ export class EntityManager { * Also counts all entities that match given conditions, * but ignores pagination settings (from and take options). */ - findAndCount( + async findAndCount( entityClass: EntityTarget, options?: FindManyOptions, ): Promise<[Entity[], number]> { @@ -1163,7 +1163,7 @@ export class EntityManager { * Also counts all entities that match given conditions, * but ignores pagination settings (from and take options). */ - findAndCountBy( + async findAndCountBy( entityClass: EntityTarget, where: FindOptionsWhere | FindOptionsWhere[], ): Promise<[Entity[], number]> {