mirror of
https://github.com/vale981/apollo-server
synced 2025-03-06 02:01:40 -05:00
Update README.md (#120)
- Add `server.start` to hapi example. - Lowercase hapi
This commit is contained in:
parent
85a41f8988
commit
b22a3dd183
1 changed files with 7 additions and 0 deletions
|
@ -84,6 +84,13 @@ server.register({
|
|||
options: { schema: myGraphQLSchema },
|
||||
routes: { prefix: '/graphql' },
|
||||
});
|
||||
|
||||
server.start((err) => {
|
||||
if (err) {
|
||||
throw err;
|
||||
}
|
||||
console.log(`Server running at: ${server.info.uri}`);
|
||||
});
|
||||
```
|
||||
### Koa
|
||||
```js
|
||||
|
|
Loading…
Add table
Reference in a new issue