blob: 8a251567d0aef507e01c370e5e8951ebbde16951 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import { ApolloClient, DefaultOptions, InMemoryCache } from "@apollo/client";
const defaultOptions = {
watchQuery: {
fetchPolicy: "no-cache",
errorPolicy: "ignore",
},
query: {
fetchPolicy: "no-cache",
errorPolicy: "all",
},
};
const client = new ApolloClient({
uri: "https://graphql.anilist.co",
cache: new InMemoryCache(),
defaultOptions: defaultOptions,
});
export { client };
|