graphql fluent validation implementation with middleware.

This commit is contained in:
David Lebee
2021-02-03 20:28:56 -05:00
parent afb8b534bb
commit ffcfc60df1
19 changed files with 332 additions and 19 deletions
+1
View File
@@ -18,6 +18,7 @@
<ProjectReference Include="..\PoweredSoft.CQRS.DynamicQuery.Abstractions\PoweredSoft.CQRS.DynamicQuery.Abstractions.csproj" />
<ProjectReference Include="..\PoweredSoft.CQRS.DynamicQuery.AspNetCore\PoweredSoft.CQRS.DynamicQuery.AspNetCore.csproj" />
<ProjectReference Include="..\PoweredSoft.CQRS.DynamicQuery\PoweredSoft.CQRS.DynamicQuery.csproj" />
<ProjectReference Include="..\PoweredSoft.CQRS.GraphQL.FluentValidation\PoweredSoft.CQRS.GraphQL.FluentValidation.csproj" />
<ProjectReference Include="..\PoweredSoft.CQRS.GraphQL.HotChocolate\PoweredSoft.CQRS.GraphQL.HotChocolate.csproj" />
<ProjectReference Include="..\PoweredSoft.CQRS\PoweredSoft.CQRS.csproj" />
</ItemGroup>
+6 -2
View File
@@ -19,6 +19,7 @@ using PoweredSoft.CQRS.AspNetCore.Mvc;
using PoweredSoft.CQRS.DynamicQuery;
using PoweredSoft.CQRS.DynamicQuery.Abstractions;
using PoweredSoft.CQRS.DynamicQuery.AspNetCore;
using PoweredSoft.CQRS.GraphQL.FluentValidation;
using PoweredSoft.CQRS.GraphQL.HotChocolate;
using PoweredSoft.Data;
using PoweredSoft.Data.Core;
@@ -50,7 +51,9 @@ namespace Demo
services.AddPoweredSoftDataServices();
services.AddPoweredSoftDynamicQuery();
services.AddPoweredSoftCQRS();
services
.AddPoweredSoftCQRS();
services
.AddControllers()
.AddPoweredSoftQueries()
@@ -65,8 +68,9 @@ namespace Demo
.AddMutationType(d => d.Name("Mutation"))
.AddPoweredSoftMutations();
services.AddPoweredSoftGraphQLFluentValidation();
//services.AddSwaggerGen();
services.AddSwaggerGen();
}
private void AddDynamicQueries(IServiceCollection services)