isNotEmptySync method

bool isNotEmptySync()

Returns true if there are objects that match this query.

This operation is faster than using count() > 0.

Implementation

bool isNotEmptySync() => aggregateSync<int>(AggregationOp.isEmpty) == 0;