Skip to main content
Version: v2 RC

eq()

Match only rows where column is equal to value.

To check if the value of column is NULL, you should use .is() instead.

const { data, error } = await supabase
.from('countries')
.select()
.eq('name', 'Albania')

Parameters

  • columnrequiredColumnName

    The column to filter on

  • valuerequiredobject

    The value to filter with

Examples

With select()

const { data, error } = await supabase
.from('countries')
.select()
.eq('name', 'Albania')