Skip to main content

.not()

Finds all rows which doesn't satisfy the filter.

final res = await supabase
.from('cities')
.select('name, country_id')
.not('name', 'eq', 'Paris')
.execute();

Examples#

With select()#

final res = await supabase
.from('cities')
.select('name, country_id')
.not('name', 'eq', 'Paris')
.execute();

With update()#

final res = await supabase
.from('cities')
.update({ 'name': 'Mordor' })
.not('name', 'eq', 'Paris')
.execute();

With delete()#

final res = await supabase
.from('cities')
.delete()
.not('name', 'eq', 'Paris')
.execute();

With rpc()#

// Only valid if the Stored Procedure returns a table type.
final res = await supabase
.rpc('echo_all_cities)
.not('name', 'eq', 'Paris')
.execute();