Inferred types for nullable columns after not null checks should be non-nullable #1360
Open
2 tasks done
Labels
bug
Something isn't working
Bug report
Describe the bug
For nullable columns, even if the query includes a not null check (e.g.
.not("column_name", "is", null)
), the inferred return type for that column is still nullable.To Reproduce
blog_posts
table with a nullable column,published_at
.published_at
field indata
is still typed as nullable.Expected behavior
Inferred type for
published_at
should not be nullable.System information
The text was updated successfully, but these errors were encountered: