Re:Grats: A More Pleasant Way to Build TypeScript GraphQL Se...
by emptysea on Thursday March 07, 2024 @08:52PM
(#39636935)
Did you manage to get IDE support to click into the backend implementation from the front end code?
[ Parent
| on HN ]
Re:Grats: A More Pleasant Way to Build TypeScript GraphQL Se...
by captbaritone on Thursday March 07, 2024 @11:25PM
(#39637764)
Grats and Relay (I work on both) can be combined to get this developer flow, and itβs pretty incredible. Would love to see it working with Strawberry as well.
https://x.com/captbaritone/status/1748020699263045659?s=46
Example project with this setup working can be found here: https://github.com/captbaritone/grats-relay-example
Re:Grats: A More Pleasant Way to Build TypeScript GraphQL Se...
by chatmasta on Thursday March 07, 2024 @09:12PM
(#39637055)
No, that would have been cool though. We did have auto-generation on save of backend, all the way to the front. That was nice when it was just myself and co-founder, and I was doing a lot of fullstack code editing. But as we hired Python and TypeScript specialists, it became less important since each developer was only focused on their side. The interface, or "contract" between frontend and backend was the .graphql schema that we checked into the codebase. And if we needed to find an implementation, it was usually simple enough to grep for a matching resolver name.