deleteOneByQuery method
Deletes the first entity that matches the given query
.
Query.limit and Query.skip are ignored.
Implementation
@override
Future<void> deleteOneByQuery(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 delete(values.first);
}