Which GraphQL library are you using in Next.js?

Hello… I see different libraries being used to make GraphQL data fetching. What do you prefer to use and why?

  1. graphql-request

  2. tiny-json-http

  3. urql

  4. Relay

  5. Apollo Client

I’ve been using Apollo Client, mainly because I am used to it and I can use it on the server and client. It also has some built-in caching and all that jazz.

I haven’t used the ones you’ve linked but I don’t think you can go that wrong really. Test each one out at the start of a project, if it doesn’t serve the purpose the way you want it to, try out the next one.


Thanks for feedback @adro.codes.

I have added Apollo Client to the list