Skip to main content
Module

x/typeorm/src/index.ts>EntityManager#findAndCount

Forked from https://github.com/typeorm/typeorm
Latest
method EntityManager.prototype.findAndCount
Re-export
import { EntityManager } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/index.ts";

Finds entities that match given find options. Also counts all entities that match given conditions, but ignores pagination settings (from and take options).

Parameters

entityClass: ObjectType<Entity>
optional
options: FindManyOptions<Entity>

Returns

Promise<[Entity[], number]>

Finds entities that match given find options. Also counts all entities that match given conditions, but ignores pagination settings (from and take options).

Parameters

entityClass: EntitySchema<Entity>
optional
options: FindManyOptions<Entity>

Returns

Promise<[Entity[], number]>

Finds entities that match given find options. Also counts all entities that match given conditions, but ignores pagination settings (from and take options).

Parameters

entityClass: string
optional
options: FindManyOptions<Entity>

Returns

Promise<[Entity[], number]>

Finds entities that match given conditions. Also counts all entities that match given conditions, but ignores pagination settings (from and take options).

Parameters

entityClass: ObjectType<Entity>
optional
conditions: FindConditions<Entity>

Returns

Promise<[Entity[], number]>

Finds entities that match given conditions. Also counts all entities that match given conditions, but ignores pagination settings (from and take options).

Parameters

entityClass: EntitySchema<Entity>
optional
conditions: FindConditions<Entity>

Returns

Promise<[Entity[], number]>

Finds entities that match given conditions. Also counts all entities that match given conditions, but ignores pagination settings (from and take options).

Parameters

entityClass: string
optional
conditions: FindConditions<Entity>

Returns

Promise<[Entity[], number]>