parent
9417429bdf
commit
976c59d307
@ -0,0 +1,14 @@ |
||||
import { ApolloClient, createHttpLink, InMemoryCache } from "@apollo/client/core" |
||||
|
||||
const httpLink = createHttpLink({ |
||||
uri: "/api/graphql", |
||||
}) |
||||
|
||||
const cache = new InMemoryCache() |
||||
|
||||
const apolloClient = new ApolloClient({ |
||||
link: httpLink, |
||||
cache, |
||||
}) |
||||
|
||||
export default apolloClient |
Loading…
Reference in new issue