News for hackers. Stuff that matters.
Re:Grats: A More Pleasant Way to Build TypeScript GraphQL Se... by Exoristos on Thursday March 07, 2024 @06:44PM (#39636015)
Do you know what's an easy, pleasant way to write GraphQL? Just write the GraphQL, in a foo.graphql file.
Re:Grats: A More Pleasant Way to Build TypeScript GraphQL Se... by captbaritone on Thursday March 07, 2024 @07:38PM (#39636387)
This approach works fine for simple projects, but you also need to provide an implementation, and the two need to line up. This is what leads people to want solutions that either generate implementation types from the .graphql schema or (as Grats does) generate the .graphql schema from the implementation.
Re:Grats: A More Pleasant Way to Build TypeScript GraphQL Se... by Exoristos on Friday March 08, 2024 @03:33PM (#39646072)
You just point graphql-codegen[0] at your GraphQL.

0 - https://the-guild.dev/graphql/codegen