GraphQL API and utilities for the rpdata project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
285 B

  1. import { ApolloClient } from "apollo-client"
  2. import { HttpLink } from "apollo-link-http"
  3. import { InMemoryCache } from "apollo-cache-inmemory"
  4. const client = new ApolloClient({
  5. link: new HttpLink({
  6. uri: "/graphql"
  7. }),
  8. cache: new InMemoryCache(),
  9. })
  10. export default client