getData method

  1. @override
Future<Map<String, dynamic>> getData(
  1. String collectionId,
  2. String mid
)
override

Implementation

@override
Future<Map<String, dynamic>> getData(String collectionId, String mid) async {
  await initialize();
  SupabaseQueryBuilder fromRef = AbsDatabase.sbDBConn!.from(collectionId);
  Map<String, dynamic>? result = await fromRef.select().eq('mid', mid).maybeSingle();
  if (result != null) {
    return result;
  }
  return {};
}