getMatch method

Future<Map?> getMatch({
  1. required String from,
  2. required Map query,
  3. List<String>? columns,
  4. SupabaseClient? supabaseClient,
})

get data

Implementation

Future<Map?> getMatch({
  required String from,
  required Map query,
  List<String>? columns,
  SupabaseClient? supabaseClient,
}) async {
  var response = await client(supabaseClient: supabaseClient).from(from).select(parseColumns(columns)).match(query);

  List<Map> data = (response).cast<Map>();
  if (data.isEmpty) {
    return null;
  }
  return data.first;
}