Skip to main content
Version: v2 RC

lt()

Match only rows where column is less than value.

const { data, error } = await supabase
.from('countries')
.select()
.lt('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()
.lt('id', 2)