exists method
Implementation
@override
FutureOr<DbResult<bool>> exists(Access access) {
// TODO: implement exists
if (access.query != null) {
Logger.of(context).warn(context, "query_not_supported",
title: "Query "
"not supported with SimpleCacheDataAccess , so its skipped");
}
if (access.identifier == null) {
throw BadRequests();
}
return DbResult<bool>(
data: data[access.collection]?[access.identifier!] != null);
}