Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
9470b91b
Commit
9470b91b
authored
Mar 23, 2018
by
Prateek Rastogi
Committed by
Tim Neutkens
Mar 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
migrated from apollo-client-preset to apollo-boost (#4047)
parent
b1341052
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
10 deletions
+8
-10
PostUpvoter.js
examples/with-apollo/components/PostUpvoter.js
+1
-1
initApollo.js
examples/with-apollo/lib/initApollo.js
+3
-3
package.json
examples/with-apollo/package.json
+4
-6
No files found.
examples/with-apollo/components/PostUpvoter.js
View file @
9470b91b
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
(
...
...
examples/with-apollo/lib/initApollo.js
View file @
9470b91b
import
{
ApolloClient
}
from
'apollo-
clien
t'
import
{
ApolloClient
}
from
'apollo-
boos
t'
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
...
...
examples/with-apollo/package.json
View file @
9470b91b
...
@@ -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"
:
""
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment