Metakit / @doeixd/metakit/relation

count

function · packages/metakit/src/relation.ts:264

function count<O extends RowInput, Row, R extends Test = true>(
  of: O,
  relation: Relation<Row>,
  test?: (each: Each<Row>) => R,
): Expr<EnvOfInput<O> & EnvOfInput<R>, number | NullOf<O>>

How many rows point at of, or how many of them pass test.