Replies: 1 comment
-
Thanks for opening this discussion @Newbie012 👍 Cross-linking my last comment here ( |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, SafeQL checks for nullability for each target result (e.g., column) individually. While it's still type-safe, it could be improved.
Sometimes, we fetch a group of columns that are nullable only due to the fact that they are left joined, and checking that one of these columns isn't null should be enough to discriminate the other columns. In TypeScript, it should look like:
In some cases, it could be the same case when querying data from the database, as long as:
Valid cases:
Invalid cases:
There are probably more valid/invalid cases. Any feedback would be highly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions