aboutsummaryrefslogtreecommitdiff
path: root/lib/apolloClient.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/apolloClient.js')
-rw-r--r--lib/apolloClient.js20
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/apolloClient.js b/lib/apolloClient.js
deleted file mode 100644
index 8a25156..0000000
--- a/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 };