Skip to content

Commit

Permalink
docs(hooks): Clarify note about context
Browse files Browse the repository at this point in the history
  • Loading branch information
doug-martin committed Jul 24, 2020
1 parent 1750dec commit 99e06f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions documentation/docs/graphql/hooks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ If you provide a custom `create` or `update` DTO you can also decorate those cla
:::

:::note
All of the examples reference a GqlContext. This is for the sake of the example you could define a custom type the
represents the information in the context based on the guards and interceptors used in your application.
All of the examples reference a GqlContext. This was defined for the sake of the example. It is recommended that you
define a custom type that represents the information in the context based on the guards and interceptors used in your
application.

We have defined our `GqlContext` as

Expand Down

0 comments on commit 99e06f4

Please sign in to comment.