Flutter: Contained by value

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

Parameters

Examples

On array columns

final data = await supabase
  .from('classes')
  .select('name')
  .containedBy('days', ['monday', 'tuesday', 'wednesday', 'friday']);

On range columns

final data = await supabase
  .from('reservations')
  .select()
  .containedBy('during', '[2000-01-01 00:00, 2000-01-01 23:59)');

On `jsonb` columns

final data = await supabase
  .from('users')
  .select('name')
  .containedBy('address', \{'postcode': 90210\});