Skip to content

Commit

Permalink
docs(middlewares): add link to class-based middlewares example
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalLytek committed Jan 11, 2023
1 parent 65e182a commit d28a95c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,10 @@ You can see some examples of the integration in this repo:

Showcase of Apollo Federation approach, using the `TypeGraphQLFederationModule` and `GraphQLGatewayModule`.

1. [Middlewares](https://github.com/MichalLytek/typegraphql-nestjs/tree/master/examples/5-middlewares)

Usage of class-based middlewares - modules, providers and schema options

You can run them by using `ts-node`, like `npx ts-node ./examples/1-basics/index.ts`.

All examples folders contain a `query.gql` file with some examples operations you can perform on the GraphQL servers.

0 comments on commit d28a95c

Please sign in to comment.