Skip to content

Instantly share code, notes, and snippets.

@wullemsb
Created April 9, 2019 06:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wullemsb/5c15902c8e148403b61388435a000ede to your computer and use it in GitHub Desktop.
Save wullemsb/5c15902c8e148403b61388435a000ede to your computer and use it in GitHub Desktop.
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