apollo-angular it is possible to use multiple Apollo Clients in your application.
You are already familiar with how to create a single client so it should be easy to understand it.
There are few ways of creating named clients.
One way is to use
Apollo.create. Normally, you would use it like this:
This will define a default client but there is one optional argument.
Now you have the default client and one called
Important thing to know is if you want to define a default client, simply do not use any
nameargument or set it to
The other way is to use helper methods.
Since we have our clients available in an app, now is the time to see how to use them.
If a client is defined as the default, you can directly use all methods of the
About named clients, simply use the method called