Metakit / @doeixd/metakit/aggregates
count
function · packages/metakit/src/aggregates.ts:320
function count<S extends Schema.Top>(
rowSchema: S,
predicate?: (
$: PathAccessor<S['Type'], S['Type']>,
) => ExprInput<S['Type'], boolean | null>,
): Count<S['Type']>The number of rows, or of rows whose predicate is true.