apollo-server: Fix registerServer path argument (#1133)

* core: add test for context as async function

* core,express: add support and test of context as async function

* Update apollo-server.md

Fix style for `registerServer`.
This commit is contained in:
Yihong 2018-06-04 09:49:21 -07:00 committed by Evans Hauser
parent 1e70a446b2
commit 04d0322d0c

View file

@ -154,7 +154,7 @@ const server = new ApolloServer({
app.use(jwtCheck, requireAuth, checkScope); // you can mount several middleware at this point to run before Apollo.
registerServer({ server, app, '/specialUrl' }); // app is from an existing express app. Mount Apollo middleware here. If no path is specified, it defaults to `/graphql`.
registerServer({ server, app, path: '/specialUrl' }); // app is from an existing express app. Mount Apollo middleware here. If no path is specified, it defaults to `/graphql`.
```
## `gql`