.contains()

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

Examples#

With select()#

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

With update()#

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

With delete()#

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

With rpc()#

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