DEV Community

Discussion on: I Migrated Away from Apollo Client to Vercel SWR and Prisma graphql-request...and You Can Too!

Collapse
 
shinabr2 profile image
ShinaBR2

Hi, this article looks nice for me. The only reason for using Apollo Client of mine is "caching", nothing else.
I have used graphql-request for my recently cloud functions and I like it's small.
But I'm using Gatsby, with a lot of issue related to SSR. Have you success with Vercel SWR in Gatsby? And how about the caching strategy between Apollo Client and Vercel SWR?
For me, I just need very simple caching strategy and setup also.
Thanks for nice article again :D

Collapse
 
aryanjnyc profile image
Aryan J

Hey Shina!

SWR is the caching solution while graphql-request will take care of making the actual GraphQL requests.

I have no experience with using Vercel SWR in Gatsby but I have used it with Next.js (which also implements SSR).

Collapse
 
shinabr2 profile image
ShinaBR2

Okay thanks, let me deep dive into and see <3 keep moving on.