Skip to main content
Version: v1-dev

.containedBy()

final data = await supabase
.from('countries')
.select('name, id, main_exports')
.containedBy('main_exports', ['cars', 'food', 'machine']);

Examples

With select()

final data = await supabase
.from('countries')
.select('name, id, main_exports')
.containedBy('main_exports', ['cars', 'food', 'machine']);

With update()

final data = await supabase
.from('countries')
.update({ 'name': 'Mordor' })
.containedBy('main_exports', ['orks', 'surveillance', 'evil']);

With delete()

final data = await supabase
.from('countries')
.delete()
.containedBy('main_exports', ['cars', 'food', 'machine']);

With rpc()

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