existsByQuery method
Returns true
if any entity exists that matches the given query
.
Implementation
@override
Future<bool> existsByQuery(Query query) {
var values = _data.entries
.where((element) =>
MapMatcher.evaluate(query.filter, element.value, system))
.map((e) => EntityIntermediate(e.key, e.value))
.map((e) => analysis.decode(e));
return Future.value(values.isNotEmpty);
}