getAssociation<_Model extends _RepositoryModel> method
Used exclusively by the OfflineFirstAdapter
. If there are no results, returns null
.
Implementation
Future<List<_Model>?> getAssociation<_Model extends _RepositoryModel>(Query query) async {
logger.finest('#getAssociation: $_Model $query');
final results = await get<_Model>(query: query, alwaysHydrate: false);
if (results.isEmpty) return null;
return results;
}