Which GraphQL client do you use, and why?

twitter logo github logo ・1 min read

In one of my side projects, I'm currently using Apollo Client, but I'm starting to find writing the code to update the cache after a query or mutation rather cumbersome. I'm thinking about switching to Relay, which, if I understand things correctly, handles a lot of that for you, in exchange to some restrictions it imposes on your schema.

So I'd like to hear from more people which client you're using and why. I'm also interested in any tools you're using, like code generators or utility libraries, to reduce boilerplate code.

twitter logo DISCUSS (4)
markdown guide
 

You should change the title from "... GraphQL query..." to "...GraphQL query client..." also you should use jraph. It is not feature-complete, and only makes queries.

 

Derp, I messed up on the title, thanks for noticing. Will check out jraph.

 

no problem! Let me know what you think of jraph :-)

 

Why do you need to manually update the cache?

Classic DEV Post from Apr 29

Terrible Interview Questions

Job interview questions which are so bad, that they are funny.

Frederik 👨‍💻➡️🌐 Creemers profile image
I'm never sure what to put in a bio. If there's anything you want to know, don't be afraid to ask!

👋 Hey dev.to reader.

Do you prefer sans serif over serif?

You can change your font preferences in the "misc" section of your settings. ❤️