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

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

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