.lte()

Finds all rows whose value on the stated column is less than or equal to the specified value.

1final data = await supabase
2  .from('cities')
3  .select('name, country_id')
4  .lte('country_id', 250);

Parameters#

  • columnrequired
    ColumnName

    The column to filter on

  • valuerequired
    object

    The value to filter with

Examples#

With select()#

1final data = await supabase
2  .from('cities')
3  .select('name, country_id')
4  .lte('country_id', 250);

With update()#

1final data = await supabase
2  .from('cities')
3  .update({ 'name': 'Mordor' })
4  .lte('country_id', 250);

With delete()#

1final data = await supabase
2  .from('cities')
3  .delete()
4  .lte('country_id', 250);

With rpc()#

1// Only valid if the Stored Procedure returns a table type.
2final data = await supabase
3  .rpc('echo_all_cities')
4  .lte('country_id', 250);