Package Exports
- nz-apollo
- nz-apollo/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nz-apollo) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@nz/apollo
apollo related utilities
API
/**
* creates an apollo client
* @param config - if we want to override the default config
* @param initialState - optional initial state for the cache
* @param headers - appending additional header to the requests
*/
export function createApolloClient(
config: Partial<PresetConfig> = {},
initialState = {},
headers = {}
): ApolloClient<any>/**
* will create the withApollo while allowing to pass additional config for the apollo client
* @param config - override the config for apollo client
*/
export function createWithApollo(config: Partial<PresetConfig>)