aboutsummaryrefslogtreecommitdiff
path: root/src/config/apollo.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/config/apollo.js')
-rw-r--r--src/config/apollo.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/config/apollo.js b/src/config/apollo.js
new file mode 100644
index 0000000..4cfca79
--- /dev/null
+++ b/src/config/apollo.js
@@ -0,0 +1,9 @@
+import { ApolloClient, InMemoryCache } from '@apollo/client/core';
+import { apollo as apolloConfig } from './config';
+
+const cache = new InMemoryCache();
+
+export const client = new ApolloClient({
+ cache,
+ ...apolloConfig
+});