1.6.10 • Published 11 months ago
nz-apollo v1.6.10
@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>)