isNotEmpty method

Future<bool> isNotEmpty()

Returns true if there are objects that match this query.

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

Implementation

Future<bool> isNotEmpty() =>
    aggregate<int>(AggregationOp.isEmpty).then((value) => value == 0);