.contains()
- JavaScript
const { data, error } = await supabase
.from('countries')
.select('name, id, main_exports')
.contains('main_exports', ['oil'])
Examples
select()
With - JavaScript
const { data, error } = await supabase
.from('countries')
.select('name, id, main_exports')
.contains('main_exports', ['oil'])
update()
With - JavaScript
const { data, error } = await supabase
.from('countries')
.update({ name: 'Mordor' })
.contains('main_exports', ['oil'])
delete()
With - JavaScript
const { data, error } = await supabase
.from('countries')
.delete()
.contains('main_exports', ['oil'])
rpc()
With - JavaScript
// Only valid if the Stored Procedure returns a table type.
const { data, error } = await supabase
.rpc('echo_all_countries')
.contains('main_exports', ['oil'])