You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
functiongetById(userId: UserId){returnsql`select name from posts where id = ${userId}}
How do you tell Postgres that UserId is a reference of users (id) and not posts (id)? by modifying the database (should be only possible in shadow database).
Drop all constraints
Drop all default values
CREATE TYPE for each key.
Map the created types to the TS types.
As a result, when auto-fix will be invoked, you'll receive id: UserId rather than id: number. It's a bit complicated, and I don't think there would be much adoption from the community, so I'm putting this as a low priority. But I will definitely get back to it!
No description provided.
The text was updated successfully, but these errors were encountered: