Answers for "graphql discard cache"

1

graphql disable cache

const defaultOptions = {
	watchQuery: {
		fetchPolicy: 'no-cache',
	},
	query: {
		fetchPolicy: 'no-cache',
	}
}

const client = new ApolloClient({
	link: concat(authMiddleware, httpLink),
	cache: new InMemoryCache(),
	defaultOptions: defaultOptions,
})
Posted by: Guest on November-14-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language