Skip to content

Commit

Permalink
Change URL and var
Browse files Browse the repository at this point in the history
Fixes #19
  • Loading branch information
Sashko Stubailo committed Apr 19, 2016
1 parent 9bf8235 commit 44cadc7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/source/apollo-server/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,16 +238,18 @@ import Resolvers from './data/resolvers';

const GRAPHQL_PORT = 8080;

var graphQLServer = express();
graphQLServer.use('/', apolloServer({
const graphQLServer = express();

graphQLServer.use('/graphql', apolloServer({
graphiql: true,
pretty: true,
schema: Schema,
resolvers: Resolvers,
//mocks: Mocks,
}));

graphQLServer.listen(GRAPHQL_PORT, () => console.log(
`GraphQL Server is now running on http://localhost:${GRAPHQL_PORT}`
`GraphQL Server is now running on http://localhost:${GRAPHQL_PORT}/graphql`
));
```

Expand Down

0 comments on commit 44cadc7

Please sign in to comment.