Using the @supabase/supabase-js package, I have a select operation with a not filter to exclude null values. However, the "type" still thinks there could be null values returned in the data set. Later on in code, I have something that expects the ticket_id field to not be null but I have to add a filter to pass the type checks.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Create a table with a field that can be a text or null
Using the Javascript SDK, add a query which selects data and has a .not("your_field", "eq", null)
Expected behavior
The type should pick up that the your_field cannot be null
Bug report
Describe the bug
Using the
@supabase/supabase-js
package, I have aselect
operation with anot
filter to excludenull
values. However, the "type" still thinks there could benull
values returned in the data set. Later on in code, I have something that expects theticket_id
field to not benull
but I have to add a filter to pass the type checks.To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
.not("your_field", "eq", null)
Expected behavior
The type should pick up that the
your_field
cannot benull
Screenshots
System information
2.36.0
20.5.1
Additional context
Add any other context about the problem here.