mirror of
https://github.com/vale981/apollo-server
synced 2025-03-06 02:01:40 -05:00
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:
parent
1e70a446b2
commit
04d0322d0c
1 changed files with 1 additions and 1 deletions
|
@ -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`
|
||||
|
|
Loading…
Add table
Reference in a new issue