.match()
Finds all rows whose columns match the specified query
object.
- JavaScript
- Python
const { data, error } = await supabase
.from('cities')
.select('name, country_id')
.match({name: 'Beijing', country_id: 156})
Parameters
queryrequiredobject
The object to filter with, with column names as keys mapped to their filter values.
Examples
select()
With - JavaScript
- Python
const { data, error } = await supabase
.from('cities')
.select('name, country_id')
.match({name: 'Beijing', country_id: 156})
update()
With - JavaScript
- Python
const { data, error } = await supabase
.from('cities')
.update({ name: 'Mordor' })
.match({name: 'Beijing', country_id: 156})
delete()
With - JavaScript
- Python
const { data, error } = await supabase
.from('cities')
.delete()
.match({name: 'Beijing', country_id: 156})
rpc()
With - JavaScript
- Python
// Only valid if the Stored Procedure returns a table type.
const { data, error } = await supabase
.rpc('echo_all_cities')
.match({name: 'Beijing', country_id: 156})