getMatch method
Future<Map?>
getMatch({
- required String from,
- required Map query,
- List<
String> ? columns, - 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;
}