Javascript Reference v1.0

Column is in an array

Finds all rows whose value on the stated column is found on the specified values.

Parameters
    column
    REQUIRED
    object

    The column to filter on.

    values
    REQUIRED
    object[]

    The values to filter with.


const { data, error } = await supabase
  .from('cities')
  .select('name, country_id')
  .in('name', ['Rio de Janeiro', 'San Francisco'])