File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import express from 'express';
2
2
import bodyParser from 'body-parser' ;
3
3
import cors from 'cors' ;
4
4
5
- import { apolloExpress , graphiqlExpress } from 'apollo -server' ;
5
+ import { graphqlExpress , graphiqlExpress } from 'graphql -server-express ' ;
6
6
import { makeExecutableSchema } from 'graphql-tools' ;
7
7
8
8
import { schema , resolvers } from './schema' ;
@@ -14,7 +14,7 @@ const app = express();
14
14
app . use ( bodyParser . urlencoded ( { extended : true } ) ) ;
15
15
app . use ( bodyParser . json ( ) ) ;
16
16
17
- app . use ( '/graphql' , apolloExpress ( ( req ) => {
17
+ app . use ( '/graphql' , graphqlExpress ( ( req ) => {
18
18
// Get the query, the same way express-graphql does it
19
19
// https://github.com/graphql/express-graphql/blob/3fa6e68582d6d933d37fa9e841da5d2aa39261cd/src/index.js#L257
20
20
const query = req . query . query || req . body . query ;
Original file line number Diff line number Diff line change 35
35
"@types/isomorphic-fetch" : " 0.0.30" ,
36
36
"@types/node" : " ^6.0.38" ,
37
37
"angular-cli" : " 1.0.0-beta.21" ,
38
- "apollo-server" : " ^0.2.6" ,
39
38
"babel-cli" : " ^6.14.0" ,
40
39
"babel-core" : " ^6.14.0" ,
41
40
"babel-preset-es2015" : " ^6.14.0" ,
47
46
"concurrently" : " ^2.2.0" ,
48
47
"cors" : " ^2.8.0" ,
49
48
"express" : " ^4.14.0" ,
50
- "graphql" : " ~0.7.0" ,
49
+ "graphql" : " ~0.8.2" ,
50
+ "graphql-server-express" : " ~0.4.3" ,
51
51
"graphql-tools" : " ~0.8.0" ,
52
52
"nodemon" : " ^1.10.2" ,
53
53
"rollup" : " ^0.36.3" ,
You can’t perform that action at this time.
0 commit comments