mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
migrated from apollo-client-preset to apollo-boost (#4047)
This commit is contained in:
parent
b13410525a
commit
9470b91ba1
|
@ -1,6 +1,6 @@
|
||||||
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 (
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
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 @@
|
||||||
"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": "",
|
||||||
|
|
Loading…
Reference in a new issue