]> git.r.bdr.sh - rbdr/forum/blobdiff - src/config/apollo.js
Use routify and GraphQL server
[rbdr/forum] / src / config / apollo.js
diff --git a/src/config/apollo.js b/src/config/apollo.js
new file mode 100644 (file)
index 0000000..4cfca79
--- /dev/null
@@ -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
+});