@apollo/client#from JavaScript Examples
The following examples show how to use
@apollo/client#from.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: client.js From gatsby-apollo-wpgraphql-jwt-starter with MIT License | 6 votes |
client = new ApolloClient({
link: from([
authMiddleware,
onErrorLink,
refreshTokenLink,
httpLink
]),
cache: new InMemoryCache({ possibleTypes }),
})
Example #2
Source File: apollo.js From stacker.news with MIT License | 5 votes |
additiveLink = from([
new RetryLink(),
new HttpLink({ uri: '/api/graphql' })
])