graphql disable cache

Solutions on MaxInterview for graphql disable cache by the best coders in the world

showing results for - "graphql disable cache"
Sarah
17 Mar 2019
1const defaultOptions = {
2	watchQuery: {
3		fetchPolicy: 'no-cache',
4	},
5	query: {
6		fetchPolicy: 'no-cache',
7	}
8}
9
10const client = new ApolloClient({
11	link: concat(authMiddleware, httpLink),
12	cache: new InMemoryCache(),
13	defaultOptions: defaultOptions,
14})
15