Javascript Reference v1.0

Don't match the filter

  • .not() expects you to use the raw PostgREST syntax for the filter names and values.

    1  .not('name','eq','Paris')
    2  .not('arraycol','cs','{"a","b"}') // Use Postgres array {} for array column and 'cs' for contains.
    3  .not('rangecol','cs','(1,2]') // Use Postgres range syntax for range column.
    4  .not('id','in','(6,7)')  // Use Postgres list () for in filter.
    5  .not('id','in',`(${arr})`)  // You can insert a javascript array.

const { data, error } = await supabase
  .select('name, country_id')
  .not('name', 'eq', 'Paris')