Reputation: 1288
I have a working backend with GraphQl and express on NodeJs.
I want to communicate the back-end with the front-end (ReactJS), to do this I want to use Apollo Client. So I have to change my backend too? Or just the Apollo Client?
If I don't have to use Apollo Server to use Apollo Client, there is a advantage to use the two of them?
Upvotes: 2
Views: 2379
Reputation: 84677
You can take advantage of persisted queries if you use both Apollo Server and Apollo Client. Future features like @live
, @stream
and @defer
directives may require using both as well. Generally speaking, though, any standard GraphQL client can make requests to any GraphQL server, as long as the server doesn't somehow deviate from the spec.
Upvotes: 3