1
0
Fork 0
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:
Prateek Rastogi 2018-03-23 17:21:58 +05:30 committed by Tim Neutkens
parent b13410525a
commit 9470b91ba1
3 changed files with 8 additions and 10 deletions

View file

@ -1,6 +1,6 @@
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 (

View file

@ -1,6 +1,6 @@
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

View file

@ -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": "",