Can apollo-client with ReactJS be used with any backend API such as spring boot or to be used only with apollo-server to get the maximum benefit?

Learning apollo-client and graphql in general. Apollo-client has caching layer that is not possible with GraphQL. One fundamental question though…

Can apollo-client with ReactJS be used with any backend API such as spring boot or to be used only with apollo-server to get the maximum benefit?

Great question @TonyGregg , @apollo/client can be used with any GraphQL spec-compliant API. There are some advanced features in@apollo/client (like @defer that are only supported when using the Apollo Router. It’s really easy to try the Apollo Router in GraphOS so if you wanted to get those advanced features you wouldn’t have to make any changes to your underlying GraphQL server implementation.

A lot of people use Java or Kotlin for their GraphQL server and there are multiple options (Federation-compatible subgraph implementations - Apollo GraphQL Docs).

We also just started up a new Discord Server meant to help interact with questions like this. Feel free to join and ping me (@watson) if you want to talk more about the backend stuff.

1 Like