3 ms·
The biggest “aha” moment for me was when I started working with graphql. The tooling would statically analyze your queries, and produce types for exactly what
by seer 6y ago
The biggest “aha” moment for me was when I started working with graphql.
The tooling would statically analyze your queries, and produce types for exactly what you were requesting.
Then you would just have a bunch of raw queries laying around, but you’d be confident the data retuned is the right data at compile time.
That made just writing raw queries a lot more simple and feasible than building abstractions on top of them.
Now TS and sql doesn’t really have a robust lib for that I think, last time I checked it was only https://github.com/adelsz/pgtyped https://github.com/adelsz/pgtyped
But haven’t looked at how far it has progressed.