storj/web/satellite/src/utils/apolloManager.ts

16 lines
447 B
TypeScript
Raw Normal View History

// Copyright (C) 2018 Storj Labs, Inc.
// See LICENSE for copying information.
import {HttpLink} from "apollo-link-http";
import ApolloClient from "apollo-client/ApolloClient";
import {InMemoryCache} from "apollo-cache-inmemory";
const satelliteUrl = new HttpLink({
uri: 'http://192.168.1.90:8081/api/graphql/v0',
});
export default new ApolloClient({
link: satelliteUrl,
cache: new InMemoryCache(),
connectToDevTools: true,
});