.is()
检查是否完全相等(null, true, false),找到所有在所述 column
上的值与指定的 value
完全匹配的记录.
const { data, error } = await supabase
.from('cities')
.select('name, country_id')
.is('name', null)
参数
-
column required
object
要筛选的“列”. -
value required
boolean
|null
用于筛选的`value`.
例子
使用 select()
const { data, error } = await supabase
.from('cities')
.select('name, country_id')
.is('name', null)
使用 update()
const { data, error } = await supabase
.from('cities')
.update({ name: 'Mordor' })
.is('name', null)
使用 delete()
const { data, error } = await supabase
.from('cities')
.delete()
.is('name', null)
使用 rpc()
// Only valid if the Postgres function returns a table type.
const { data, error } = await supabase
.rpc('echo_all_cities')
.is('name', null)