.containedBy()

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

Examples#

With select()#

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

With update()#

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

With delete()#

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

With rpc()#

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