diff --git a/server.js b/server.js index dd856b2..6b7a626 100644 --- a/server.js +++ b/server.js @@ -1,5 +1,6 @@ const express = require('express') -const expressGraphQL = require('express-graphql') +const expressGraphQL = require('express-graphql').graphqlHTTP + const { GraphQLSchema, GraphQLObjectType, @@ -132,4 +133,4 @@ app.use('/graphql', expressGraphQL({ schema: schema, graphiql: true })) -app.listen(5000, () => console.log('Server Running')) \ No newline at end of file +app.listen(5000, () => console.log('Server Running'))