Skip to content

Commit 44cadc7

Browse files
author
Sashko Stubailo
committed
Change URL and var
Fixes #19
1 parent 9bf8235 commit 44cadc7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/source/apollo-server/guide.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -238,16 +238,18 @@ import Resolvers from './data/resolvers';
238238

239239
const GRAPHQL_PORT = 8080;
240240

241-
var graphQLServer = express();
242-
graphQLServer.use('/', apolloServer({
241+
const graphQLServer = express();
242+
243+
graphQLServer.use('/graphql', apolloServer({
243244
graphiql: true,
244245
pretty: true,
245246
schema: Schema,
246247
resolvers: Resolvers,
247248
//mocks: Mocks,
248249
}));
250+
249251
graphQLServer.listen(GRAPHQL_PORT, () => console.log(
250-
`GraphQL Server is now running on http://localhost:${GRAPHQL_PORT}`
252+
`GraphQL Server is now running on http://localhost:${GRAPHQL_PORT}/graphql`
251253
));
252254
```
253255

0 commit comments

Comments
 (0)