Only relevant for jsonb, array, and range columns. Match only rows where every element appearing in column
is contained by value
.
The jsonb, array, or range column to filter on
The jsonb, array, or range value to filter with
const \{ data, error \} = await supabase
.from('classes')
.select('name')
.containedBy('days', ['monday', 'tuesday', 'wednesday', 'friday'])
const \{ data, error \} = await supabase
.from('reservations')
.select()
.containedBy('during', '[2000-01-01 00:00, 2000-01-01 23:59)')
const \{ data, error \} = await supabase
.from('users')
.select('name')
.containedBy('address', \{\})