update()
should always be combined with Filters to target the item(s) you wish to update.const \{ data, error \} = await supabase
.from('cities')
.update(\{ name: 'Middle Earth' \})
.match(\{ name: 'Auckland' \})
const \{ data, error \} = await supabase
.from('users')
.update(`
address: \{
street: 'Melrose Place',
postcode: 90210
\}
`)
.eq('address->postcode', 90210)