This plugin provides complete flexibility to modify the apollo client. This is done by providing various filter hooks at different stages of store initialization.
plugin.apollo.config
This hook gives the ability to modify the plugin configurations.
Parameters:
Name
Type
Description
config
Object
Plugin configurations
Returns:
Name
Type
Description
config
Object
Plugin configurations
Example:
This example activates subscriptions in apollo client.
plugin.apollo.networkInterface
This hook gives the ability to hook into Apollo's network interface. A usecase can be to apply middlewares to it.
Parameters:
Name
Type
Description
networkInterface
Object
Apollo's networkInterface object
Returns:
Name
Type
Description
networkInterface
Object
Apollo's networkInterface object
API
ApolloPluginConfigs
This is the default configuration set that is used at boot time.