.ilike()
Finds all rows whose value in the stated column
matches the supplied
pattern
(case insensitive).
const { data, error } = await supabase
.from('cities')
.select('name, country_id')
.ilike('name', '%la%')
Parameters
columnrequired
object
The column to filter on.
patternrequired
string
The pattern to filter with.
Examples
With select()
const { data, error } = await supabase
.from('cities')
.select('name, country_id')
.ilike('name', '%la%')
With update()
const { data, error } = await supabase
.from('cities')
.update({ name: 'Mordor' })
.ilike('name', '%la%')
With delete()
const { data, error } = await supabase
.from('cities')
.delete()
.ilike('name', '%la%')
With rpc()
// Only valid if the Postgres function returns a table type.
const { data, error } = await supabase
.rpc('echo_all_cities')
.ilike('name', '%la%')