-
-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type safety is not being adhered on insert queries #508
Comments
I have the same issue. Did you find out @dvrfluxchat ? |
I am experiencing the same issue. There is no type safety on insert for values that are not part of your table schema. E.g
I think It should throw a type error letting you know that there is no |
A little irritating that queries are not typesafe automatically if the dbClient is typed but the queries are generic so passing in a type definition will solve this issue
|
I have a insert query in my db which looks like this and I am using the typescript version of supabase-js.
I changed the column "column1" to "newColumn1" but the above query did not throw any errors where there is no "column1". This lead to issues in production where this query stopped working as the insert was failing saying there is no column1 but the compiler did not throw any error. Is this the expected behaviour? If so how do i ensure to get compile time warnings for such scenarios.
The text was updated successfully, but these errors were encountered: