I’m curious what graphql client you’re using (for ...
# orm-help
i
I’m curious what graphql client you’re using (for the web) — specifically looking for something: 1. Simple 2. Reliable This rules out apollo IMO, what else you got?
j
For simple use cases I would recommend graphql-request with typings generated using graphql-codegen.
i
what about with subscriptions and optimistic updates? I’ve tried urql too, but it also is a bit too complex / misses a few cases. Vercel’s swr looks nice in terms of simplicity / debug-ability. Is there anything like that for graphql specfically?
j
Ahhh. In this case I’m not sure. I assumed that what you meant by “simple” was just pure graphql queries.
i
hmm yeah, maybe I want too much. Mostly it’d be nice to set it up once and then be guaranteed to have a consistent / bug free access to data.
r
You could try React Query. I personally find it better than SWR in terms of API and features.
👀 1
👍 1