Home

Column contains every element in a value

Only relevant for jsonb, array, and range columns. Match only rows where column contains every element appearing in value.

Parameters
  • column
    REQUIRED
    string

    The jsonb, array, or range column to filter on

  • value
    REQUIRED
    object

    The jsonb, array, or range value to filter with


const { data, error } = await supabase
  .from('users')
  .select()
  .contains('name', ['is:online', 'faction:red'])