first method
get first document that matches query
Implementation
Future<T> first([Map<dynamic, dynamic> query = const {}]) {
try {
return _executionQueue.add<T>(() async =>
createItem(await (await _storage.find(query, Filter.first)).first));
} catch (e) {
rethrow;
}
}