We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9bf8235 commit 44cadc7Copy full SHA for 44cadc7
docs/source/apollo-server/guide.md
@@ -238,16 +238,18 @@ import Resolvers from './data/resolvers';
238
239
const GRAPHQL_PORT = 8080;
240
241
-var graphQLServer = express();
242
-graphQLServer.use('/', apolloServer({
+const graphQLServer = express();
+
243
+graphQLServer.use('/graphql', apolloServer({
244
graphiql: true,
245
pretty: true,
246
schema: Schema,
247
resolvers: Resolvers,
248
//mocks: Mocks,
249
}));
250
251
graphQLServer.listen(GRAPHQL_PORT, () => console.log(
- `GraphQL Server is now running on http://localhost:${GRAPHQL_PORT}`
252
+ `GraphQL Server is now running on http://localhost:${GRAPHQL_PORT}/graphql`
253
));
254
```
255
0 commit comments