diff --git a/src/PostgrestFilterBuilder.ts b/src/PostgrestFilterBuilder.ts index 21cc4090..76e2f284 100644 --- a/src/PostgrestFilterBuilder.ts +++ b/src/PostgrestFilterBuilder.ts @@ -474,6 +474,8 @@ export default class PostgrestFilterBuilder< * @param value - The value to filter with, following PostgREST syntax */ not(column: string, operator: string, value: unknown): this { + if (operator === 'eq' && value === null) + throw new TypeError('eq operator does not support null value') this.url.searchParams.append(column, `not.${operator}.${value}`) return this }