added validation middleware.

This commit is contained in:
David Lebee 2021-02-04 13:53:53 -05:00
parent edf9258a85
commit 45279da02b
2 changed files with 4 additions and 0 deletions

View File

@ -61,6 +61,9 @@ namespace PoweredSoft.CQRS.GraphQL.HotChocolate.DynamicQuery
f.Type(resultType);
// middleware to validate.
f.Use<QueryValidationMiddleware>();
// resolver
f.Resolve(async r =>
{

View File

@ -11,6 +11,7 @@
<ItemGroup>
<ProjectReference Include="..\PoweredSoft.CQRS.Abstractions\PoweredSoft.CQRS.Abstractions.csproj" />
<ProjectReference Include="..\PoweredSoft.CQRS.GraphQL.DynamicQuery\PoweredSoft.CQRS.GraphQL.DynamicQuery.csproj" />
<ProjectReference Include="..\PoweredSoft.CQRS.GraphQL.HotChocolate\PoweredSoft.CQRS.GraphQL.HotChocolate.csproj" />
</ItemGroup>
</Project>