Skip to content

Commit

Permalink
correct typos in the hapi documentation (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoPhi authored and helfer committed Aug 11, 2016
1 parent a97e4ed commit fed21ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/source/apollo-server/graphiql.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ app.use('/graphiql', graphiqlConnect({
If you are using HAPI, GraphiQL can be configured as follows:

```js
import { graphqlHAPI } from 'apollo-server';
import { GraphiQLHAPI } from 'apollo-server';

server.register({
register: new GraphiQLHAPI(),
Expand Down
8 changes: 5 additions & 3 deletions docs/source/apollo-server/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ order: 302
description: How to set up Apollo Server
---

Apollo Server exports `apolloExpress`, `apolloConnect`, `apolloHAPI` and `apolloKoa` which can be used as a drop-in to turn your Express, Connect, HAPI or Koa server into a GraphQL server.
Apollo Server exports `apolloExpress`, `apolloConnect`, `ApolloHAPI` and `apolloKoa` which can be used as a drop-in to turn your Express, Connect, HAPI or Koa server into a GraphQL server.


<h2 id="apolloOptions">ApolloOptions</h2>
Expand Down Expand Up @@ -78,9 +78,10 @@ The `options` passed to `apolloConnect` are the same as those passed to `apolloE
The following code snippet shows how to use Apollo Server with HAPI:

```js
import hapi from 'hapi';
import Hapi from 'hapi';
import { ApolloHAPI } from 'apollo-server';

const server = new hapi.Server();
const server = new Hapi.Server();

const HOST = 'localhost';
const PORT = 3000;
Expand All @@ -93,6 +94,7 @@ server.connection({
server.register({
register: new ApolloHAPI(),
options: { schema: myGraphQLSchema },
// or options: request => ({ schema, ... })
routes: { prefix: '/graphql' },
});
```
Expand Down

0 comments on commit fed21ff

Please sign in to comment.