mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
16 lines
426 B
JavaScript
16 lines
426 B
JavaScript
import Vue from 'vue'
|
|
import { ApolloClient, createNetworkInterface } from 'apollo-client'
|
|
import 'isomorphic-fetch'
|
|
|
|
// Created with Graphcool - https://www.graph.cool/
|
|
const API_ENDPOINT = 'https://api.graph.cool/simple/v1/cj1dqiyvqqnmj0113yuqamkuu'
|
|
|
|
const apolloClient = new ApolloClient({
|
|
networkInterface: createNetworkInterface({
|
|
uri: API_ENDPOINT,
|
|
transportBatching: true
|
|
})
|
|
})
|
|
|
|
export default apolloClient
|