Skip to main content
Version: v1-dev

.match()

Finds all rows whose columns match the specified query object.

final data = await supabase
.from('cities')
.select('name, country_id')
.match({'name': 'Beijing', 'country_id': 156});

Examples

With select()

final data = await supabase
.from('cities')
.select('name, country_id')
.match({'name': 'Beijing', 'country_id': 156});

With update()

final data = await supabase
.from('cities')
.update({ 'name': 'Mordor' })
.match({'name': 'Beijing', 'country_id': 156});

With delete()

final data = await supabase
.from('cities')
.delete()
.match({'name': 'Beijing', 'country_id': 156});

With rpc()

// Only valid if the Stored Procedure returns a table type.
final data = await supabase
.rpc('echo_all_cities')
.match({'name': 'Beijing', 'country_id': 156});