diff --git a/PoweredSoft.CQRS.GraphQL.HotChocolate/QueryObjectType.cs b/PoweredSoft.CQRS.GraphQL.HotChocolate/QueryObjectType.cs index a8492c9..a96673c 100644 --- a/PoweredSoft.CQRS.GraphQL.HotChocolate/QueryObjectType.cs +++ b/PoweredSoft.CQRS.GraphQL.HotChocolate/QueryObjectType.cs @@ -25,7 +25,7 @@ namespace PoweredSoft.CQRS.GraphQL.HotChocolate foreach (var q in queryDiscovery.GetQueries()) { if (q.Category != "BasicQuery") - return; + continue; var queryField = desc.Field(q.LowerCamelCaseName); var typeToGet = typeof(IQueryHandler<,>).MakeGenericType(q.QueryType, q.QueryResultType);