method IDataSource.count
IDataSource.count(
where: Record<string, unknown>,
): Promise<number>

Count entities matching a filter.

Parameters

where: Record<string, unknown>

Equality conditions; empty alone counts all rows

optional
filter: FilterExpression

Optional portable expression conjoined with where

Return Type

Promise<number>

The matching row count

Usage

import { type IDataSource } from "common/src/index.ts";