.ov()

Finds all rows whose array or range value on the stated column is contained by the specified value.

const { data, error } = await supabase
.from('countries')
.select('name, id, main_exports')
.ova('main_exports', ['computers', 'minerals'])

Parameters

  • columnrequiredobject

    The column to filter on.

  • valuerequired|

    The value to filter with.

Examples

With select()

const { data, error } = await supabase
.from('countries')
.select('name, id, main_exports')
.ova('main_exports', ['computers', 'minerals'])

With update()

let countries = await supabase
.from('countries')
.update({ name: 'Mordor' })
.ova('main_exports', ['computers', 'minerals'])

With delete()

const { data, error } = await supabase
.from('countries')
.delete()
.ova('main_exports', ['computers', 'minerals'])

With rpc()

// Only valid if the Stored Procedure returns a table type.
const { data, error } = await supabase
.rpc('echo_all_countries')
.ova('main_exports', ['computers', 'minerals'])