Skip to main content
Version: v1

.is()

A check for exact equality (null, true, false), finds all rows whose value on the stated column exactly match the specified value.

const { data, error } = await supabase
.from('cities')
.select('name, country_id')
.is('name', null)

Parameters

  • columnrequiredobject

    The column to filter on.

  • valuerequiredliteral | boolean

    The value to filter with.

      Properties
    • booleanrequiredobject

      No description provided.

Examples

With select()

const { data, error } = await supabase
.from('cities')
.select('name, country_id')
.is('name', null)

With update()

const { data, error } = await supabase
.from('cities')
.update({ name: 'Mordor' })
.is('name', null)

With delete()

const { data, error } = await supabase
.from('cities')
.delete()
.is('name', null)

With rpc()

// Only valid if the Postgres function returns a table type.
const { data, error } = await supabase
.rpc('echo_all_cities')
.is('name', null)