Skip to content

Commit

Permalink
docs: Add router_service to services table (#5024)
Browse files Browse the repository at this point in the history
  • Loading branch information
shorgi committed Apr 29, 2024
1 parent dc6c05e commit 0626c25
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/source/customizations/rhai.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,16 @@ Each Apollo Router service has a corresponding function that a Rhai script can d

##### `RouterService`

`router_service`
</td>
<td>

Runs at the very beginning and very end of the HTTP request lifecycle.

For example, [JWT authentication](../configuration/authn-jwt) is performed within the `RouterService`.

Define `router_service` if your customization needs to interact with HTTP `context` and `headers`. It doesn't support access to the `body` property (see [this GitHub issue](https://github.com/apollographql/router/issues/3642) for details).

</td>
</tr>
<tr>
Expand Down

0 comments on commit 0626c25

Please sign in to comment.