Live data from Hacker News

Show HN: Game Changing Typed GraphQL

github.com

1–10 of 19 posts

Re: Show HN: Game Changing Typed GraphQL

#5
post #3

Looks nice. How does it compare to graphql-code-generator? I've been using that tool for years and I'm happy with it, but always glad for improved tools.

Same here. I’ve tried Apollo but switched to react query and graphql codegen. Probably not going to switch again without reason— would be interesting to see the differences. Title is a little off putting because it sounds like there’s a little precooked bias

Re: Show HN: Game Changing Typed GraphQL

#6
post #4

Not a fan of uselessly sensational titles, but will give it a try. Currently using urql and codegen that already handle that pretty well. What is your edge?

I plan to integrate urql. I generate the whole lib with complicated generic types, so you don't have to write gql queries and run codegen. Just generate once and write interactive queries. No watching and stuff

Re: Show HN: Game Changing Typed GraphQL

#7
post #3

Looks nice. How does it compare to graphql-code-generator? I've been using that tool for years and I'm happy with it, but always glad for improved tools.

Same here. I’ve tried Apollo but switched to react query and graphql codegen. Probably not going to switch again without reason— would be interesting to see the differences. Title is a little off putting because it sounds like there’s a little precooked bias

Just generate one lib. then write type safe queries inside IDE

Re: Show HN: Game Changing Typed GraphQL

#8
https://hasura.io/blog/your-guide-to-graphql-with-typescript...

So I guess this is a recommended option from Hasura to generate typed API bindings; I was going to try following that tutorial at some point, looks pretty slick.

Am I understanding correctly that this tool works with something like Hasura (GraphQL backend) to generate an API schema / query client that can be used with something like react-query to retrieve data?

Re: Show HN: Game Changing Typed GraphQL

#9
post #3

Looks nice. How does it compare to graphql-code-generator? I've been using that tool for years and I'm happy with it, but always glad for improved tools.

Same here. I’ve tried Apollo but switched to react query and graphql codegen. Probably not going to switch again without reason— would be interesting to see the differences. Title is a little off putting because it sounds like there’s a little precooked bias

I integrated react-query with zeus so you can try it together with integration
Post reply on HN