Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

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

Forked from https://github.com/typeorm/typeorm
Latest
method Repository.prototype.findAndCount
Re-export
import { Repository } 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

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

optional
conditions: FindConditions<Entity>

Returns

Promise<[Entity[], number]>