From 9470b91ba159af8e44d553321d5e92b3729cd18b Mon Sep 17 00:00:00 2001 From: Prateek Rastogi Date: Fri, 23 Mar 2018 17:21:58 +0530 Subject: [PATCH] migrated from apollo-client-preset to apollo-boost (#4047) --- examples/with-apollo/components/PostUpvoter.js | 2 +- examples/with-apollo/lib/initApollo.js | 6 +++--- examples/with-apollo/package.json | 10 ++++------ 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/examples/with-apollo/components/PostUpvoter.js b/examples/with-apollo/components/PostUpvoter.js index 6617ed2b9f..11bf1433c6 100644 --- a/examples/with-apollo/components/PostUpvoter.js +++ b/examples/with-apollo/components/PostUpvoter.js @@ -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 ( diff --git a/examples/with-apollo/lib/initApollo.js b/examples/with-apollo/lib/initApollo.js index ff38d7b025..f7271abdc8 100644 --- a/examples/with-apollo/lib/initApollo.js +++ b/examples/with-apollo/lib/initApollo.js @@ -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 diff --git a/examples/with-apollo/package.json b/examples/with-apollo/package.json index 86b65f1b55..0bdb262a25 100644 --- a/examples/with-apollo/package.json +++ b/examples/with-apollo/package.json @@ -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": "", -- GitLab