Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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,
})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #graphql #disable #cache
ADD COMMENT
Topic
Name
8+7 =