Defining our GraphQL Middleware
Please show your support on Patreon to assist me with making these videos : / baylor
For our GraphQL server we are going to intercept all requests in the middleware layer. This removes the overhead of a traditional MVC application which isn't necessary considering all the heavy lifting is built into GraphQL.
We'll start by creating a new class to contain our middleware and will add an extension method on IApplicationBuilder that will provide a clean DSL for configuring it.