public void Configure(IApplicationBuilder app, BookShopDbContext dbContext) { app.UseCors(builder => builder .AllowAnyOrigin() .AllowAnyHeader() .AllowAnyMethod()); app.UseWebSockets(); app.UseGraphQLWebSockets <BookShopSchema>("/graphql"); app.UseGraphQL <BookShopSchema>(); app.UseGraphQLPlayground(new GraphQLPlaygroundOptions()); dbContext.SeedAsync().GetAwaiter().GetResult(); }