JavaScript: 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

Examples

On array columns

const \{ data, error \} = await supabase
  .from('issues')
  .select()
  .contains('tags', ['is:open', 'priority:low'])

On range columns

const \{ data, error \} = await supabase
  .from('reservations')
  .select()
  .contains('during', '[2000-01-01 13:00, 2000-01-01 13:30)')

On `jsonb` columns

const \{ data, error \} = await supabase
  .from('users')
  .select('name')
  .contains('address', \{ postcode: 90210 \})