File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import path from 'path' ;
2
2
import express from 'express' ;
3
- import { apolloExpress , graphiqlExpress } from 'apollo -server' ;
3
+ import { graphqlExpress , graphiqlExpress } from 'graphql -server-express ' ;
4
4
import bodyParser from 'body-parser' ;
5
5
6
6
import {
@@ -33,7 +33,7 @@ app.use(bodyParser.json());
33
33
34
34
setUpGitHubLogin ( app ) ;
35
35
36
- app . use ( '/graphql' , apolloExpress ( ( req ) => {
36
+ app . use ( '/graphql' , graphqlExpress ( ( req ) => {
37
37
// Get the query, the same way express-graphql does it
38
38
// https://github.com/graphql/express-graphql/blob/3fa6e68582d6d933d37fa9e841da5d2aa39261cd/src/index.js#L257
39
39
const query = req . query . query || req . body . query ;
Original file line number Diff line number Diff line change 40
40
"nodemon" : " 1.11.0"
41
41
},
42
42
"dependencies" : {
43
- "apollo-server" : " 0.3.3" ,
44
43
"body-parser" : " 1.15.2" ,
45
44
"connect-session-knex" : " 1.2.0" ,
46
45
"dataloader" : " 1.2.0" ,
47
46
"dotenv" : " 2.0.0" ,
48
47
"express" : " 4.14.0" ,
49
48
"express-session" : " 1.14.1" ,
50
49
"graphql" : " 0.7.2" ,
50
+ "graphql-server-express" : " ^0.4.1" ,
51
51
"graphql-subscriptions" : " 0.2.0" ,
52
52
"graphql-tools" : " 0.7.2" ,
53
53
"knex" : " 0.12.6" ,
You can’t perform that action at this time.
0 commit comments