diff options
| author | Factiven <[email protected]> | 2023-04-14 00:14:12 +0700 |
|---|---|---|
| committer | Factiven <[email protected]> | 2023-04-14 00:14:12 +0700 |
| commit | 70fda74d27d9b55c9030932794daa25c1e6cf50d (patch) | |
| tree | 0c1f639be4e8ec1b960ba642b8e99c1485e83b1a /pages/lib/apolloClient.js | |
| parent | Update 5th (diff) | |
| download | moopa-70fda74d27d9b55c9030932794daa25c1e6cf50d.tar.xz moopa-70fda74d27d9b55c9030932794daa25c1e6cf50d.zip | |
Update 6th
Diffstat (limited to 'pages/lib/apolloClient.js')
| -rw-r--r-- | pages/lib/apolloClient.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/pages/lib/apolloClient.js b/pages/lib/apolloClient.js deleted file mode 100644 index 8a25156..0000000 --- a/pages/lib/apolloClient.js +++ /dev/null @@ -1,20 +0,0 @@ -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 }; |