Skip to content

Commit

Permalink
Update createHttpLink to new HttpLink
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Drago authored and kettanaito committed Oct 8, 2020
1 parent fb60382 commit 0d2f306
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/graphql-react-apollo/src/ApolloClient.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { ApolloClient, InMemoryCache, createHttpLink } from '@apollo/client'
import { ApolloClient, HttpLink, InMemoryCache } from '@apollo/client'

const cache = new InMemoryCache()

const link = createHttpLink({
const link = new HttpLink({
uri: 'http://localhost:3000/graphql',

// Use explicit `window.fetch` so tha outgoing requests
Expand Down

0 comments on commit 0d2f306

Please sign in to comment.