count method

Expr<int> count()

Builds a correlated SQL count without fetching related rows into Dart.

Counts filtered related rows; take and skip are not supported here.

Implementation

Expr<int> count() =>
    Expr.internal(RelationSubqueryNode(this, true), Codecs.integer);