提交 9470b91b 编写于 作者: P Prateek Rastogi 提交者: Tim Neutkens

migrated from apollo-client-preset to apollo-boost (#4047)

上级 b1341052
import React from 'react'
import { graphql } from 'react-apollo'
import gql from 'graphql-tag'
import { gql } from 'apollo-boost'
function PostUpvoter ({ upvote, votes, id }) {
return (
......
import { ApolloClient } from 'apollo-client'
import { HttpLink } from 'apollo-link-http'
import { InMemoryCache } from 'apollo-cache-inmemory'
import { ApolloClient } from 'apollo-boost'
import { HttpLink } from 'apollo-boost'
import { InMemoryCache } from 'apollo-boost'
import fetch from 'isomorphic-unfetch'
let apolloClient = null
......
......@@ -7,15 +7,13 @@
"start": "next start"
},
"dependencies": {
"apollo-client-preset": "1.0.4",
"graphql": "0.11.7",
"graphql-anywhere": "4.0.2",
"graphql-tag": "2.5.0",
"apollo-boost": "^0.1.3",
"graphql": "0.13.2",
"isomorphic-unfetch": "2.0.0",
"next": "latest",
"prop-types": "15.6.0",
"prop-types": "15.6.1",
"react": "16.2.0",
"react-apollo": "2.0.1",
"react-apollo": "2.1.0",
"react-dom": "16.2.0"
},
"author": "",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册