Skip to content

Instantly share code, notes, and snippets.

@hwillson
Created February 26, 2019 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hwillson/71293d035bf397acc36fb893fd17925b to your computer and use it in GitHub Desktop.
Save hwillson/71293d035bf397acc36fb893fd17925b to your computer and use it in GitHub Desktop.
Apollo Client - 2.5.0 - Schema
const client = new ApolloClient({
cache: new InMemoryCache(),
link: new HttpLink({
uri: 'http://localhost:4000/graphql',
}),
typeDefs: gql`
extend type Launch {
isInCart: Boolean!
}
`,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment