--- id: contains title: ".contains()" slug: contains custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml --- import Tabs from '@theme/Tabs'; import TabsPanel from '@theme/TabsPanel'; ```js const { data, error } = await supabase .from('countries') .select('name, id, main_exports') .contains('main_exports', ['oil']) ``` ## Examples ### With `select()` ```js const { data, error } = await supabase .from('countries') .select('name, id, main_exports') .contains('main_exports', ['oil']) ``` ### With `update()` ```js const { data, error } = await supabase .from('countries') .update({ name: 'Mordor' }) .contains('main_exports', ['oil']) ``` ### With `delete()` ```js const { data, error } = await supabase .from('countries') .delete() .contains('main_exports', ['oil']) ``` ### With `rpc()` ```js // Only valid if the Postgres function returns a table type. const { data, error } = await supabase .rpc('echo_all_countries') .contains('main_exports', ['oil']) ```