--- id: or title: ".or()" slug: or custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml --- import Tabs from '@theme/Tabs'; import TabsPanel from '@theme/TabsPanel'; Finds all rows satisfying at least one of the filters. ```js const { data, error } = await supabase .from('cities') .select('name, country_id') .or('id.eq.20,id.eq.30') ``` ## Parameters ## Examples ### With `select()` ```js const { data, error } = await supabase .from('cities') .select('name, country_id') .or('id.eq.20,id.eq.30') ``` ### Use `or` with `and` ```js const { data, error } = await supabase .from('cities') .select('name, country_id') .or('id.gt.20,and(name.eq.New Zealand,name.eq.France)') ``` ### Use `or` on foreign tables ```js const { data, error } = await supabase .from('countries') .select('id, cities(*)') .or('name.eq.Wellington,name.eq.Paris', { foreignTable: "cities" }) ```