4 ms·
Do you know what's an easy, pleasant way to write GraphQL? Just write the GraphQL, in a foo.graphql file.
by Exoristos 3y ago
Do you know what's an easy, pleasant way to write GraphQL? Just write the GraphQL, in a foo.graphql file.
- captbaritone 3y agoThis 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.
- Exoristos 3y agoYou just point graphql-codegen[0] at your GraphQL. 0 - https://the-guild.dev/graphql/codegen https://the-guild.dev/graphql/codegen