Created
April 9, 2019 06:46
-
-
Save wullemsb/5c15902c8e148403b61388435a000ede to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void Configure(IApplicationBuilder app, IHostingEnvironment env) | |
{ | |
if (env.IsDevelopment()) | |
{ | |
app.UseDeveloperExceptionPage(); | |
} | |
app.UseDefaultFiles(); | |
app.UseStaticFiles(); | |
app.UseWebSockets(); | |
app.UseGraphQLWebSocket<OrdersSchema>(new GraphQLWebSocketsOptions()); | |
app.UseGraphQLHttp<OrdersSchema>(new GraphQLHttpOptions()); | |
app.Map("/schema.graphql", config => config.UseMiddleware<SchemaMiddleware>()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment