not method

PostgrestFilterBuilder not(
  1. String column,
  2. String operator,
  3. dynamic value
)

Finds all rows which doesn't satisfy the filter.

postgrest.from('users').select().not('status', 'eq', 'OFFLINE')

Implementation

PostgrestFilterBuilder not(String column, String operator, dynamic value) {
  if (value is List) {
    if (operator == 'cs') {
      // `cs` filter requires postgrest array type `{}`
      appendSearchParams(
        column,
        'not.$operator.{${_cleanFilterArray(value)}}',
      );
    } else {
      appendSearchParams(
        column,
        'not.$operator.(${_cleanFilterArray(value)})',
      );
    }
  } else {
    appendSearchParams(column, 'not.$operator.$value');
  }
  return this;
}