Skip to main content
Version: v2 RC

lte()

Match only rows where column is less than or equal to value.

const { data, error } = await supabase
.from('countries')
.select()
.lte('id', 2)

Parameters

  • columnrequiredColumnName

    The column to filter on

  • valuerequiredobject

    The value to filter with

Examples

With select()

const { data, error } = await supabase
.from('countries')
.select()
.lte('id', 2)