Skip to main content
Version: v1-dev

.contains()

final data = await supabase
.from('countries')
.select('name, id, main_exports')
.contains('main_exports', ['oil']);

Examples

With select()

final data = await supabase
.from('countries')
.select('name, id, main_exports')
.contains('main_exports', ['oil']);

With update()

final data = await supabase
.from('countries')
.update({ 'name': 'Mordor' })
.contains('main_exports', ['oil']);

With delete()

final data = await supabase
.from('countries')
.delete()
.contains('main_exports', ['oil']);

With rpc()

// Only valid if the Stored Procedure returns a table type.
final data = await supabase
.rpc('echo_all_countries')
.contains('main_exports', ['oil']);