--- id: overlaps title: ".overlaps()" slug: overlaps 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') .overlaps('main_exports', ['computers', 'minerals']) ``` ## Examples ### With `select()` ```js const { data, error } = await supabase .from('countries') .select('name, id, main_exports') .overlaps('main_exports', ['computers', 'minerals']) ``` ### With `update()` ```js let countries = await supabase .from('countries') .update({ name: 'Mordor' }) .overlaps('main_exports', ['computers', 'minerals']) ``` ### With `delete()` ```js const { data, error } = await supabase .from('countries') .delete() .overlaps('main_exports', ['computers', 'minerals']) ``` ### With `rpc()` ```js // Only valid if the Postgres function returns a table type. const { data, error } = await supabase .rpc('echo_all_countries') .overlaps('main_exports', ['computers', 'minerals']) ```