Skip to content

Commit

Permalink
Update directives.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Mar 3, 2022
1 parent 248aa66 commit 5deebab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/graphql/directives.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ async getAuthor(@Args({ name: 'id', type: () => Int }) id: number) {
Lastly, make sure to declare directives in the `GraphQLModule`, as follows:

```typescript
GraphQLModule.forRoot<ApolloDriverConfig>({
GraphQLModule.forRoot({
// ...,
transformSchema: schema => upperDirectiveTransformer(schema, 'upper'),
buildSchemaOptions: {
Expand Down

0 comments on commit 5deebab

Please sign in to comment.