You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error CS0122: QueryBuilderParameter<StringOperationFilterInput>.QueryBuilderParameter(string, string, StringOperationFilterInput is inaccessible due to its protection level
#108
Open
arjandouwes opened this issue
Jul 20, 2022
· 1 comment
SwreleaseFilterInputswreleaseFilterInput=new(){Swreleasecode=new("swreleaseCode",
GraphQlTypes.Swrelease,new StringOperationFilterInput(){Contains=newQueryBuilderParameter<string?>("swreleaseCode",
GraphQlTypes.Swrelease,"216")})};QueryBuilderParameter<SwreleaseFilterInput?>queryBuilderParameter=new("swreleaseCode",
GraphQlTypes.Swrelease,newQueryBuilderParameter<SwreleaseFilterInput>("swreleaseFilterInput ",
nameof(swreleaseFilterInput),
swreleaseFilterInput));SwreleaseQueryBuilderswreleaseQueryBuilder=new SwreleaseQueryBuilder().WithAllScalarFields();QueryQueryBuilderqueryQueryBuilder=new QueryQueryBuilder().WithSwReleases(swreleaseQueryBuilder,where: queryBuilderParameter);varqueryString= queryQueryBuilder.Build(Formatting.Indented);
GraphQL.GraphQLRequest swreleaseQuery=new(){Query=queryString,};// call to the GraphQL endpoint and response processing code follows
The problem is that
newQueryBuilderParameter<string?>(...)
produces Error CS0122: QueryBuilderParameter<string?>.QueryBuilderParameter(string, string, StringOperationFilterInput is inaccessible due to its protection level. When checking the generated base class, I found:
What is the correct way for constructing the above query using the generated classes?
Should the constructor QueryBuilderParameter(string name, string graphQlTypeName, T value): base(name, graphQlTypeName, value) be decorated with the access modifier protected?
The text was updated successfully, but these errors were encountered:
Used NuGet Packages:
Used Language: C# 10 .NET 6 (VS 2022 professional version 17.2.6)
I am trying to create the following query using the generated classes from GraphQlClientGenerator:
The query is being constructed as follows:
The problem is that
produces Error CS0122: QueryBuilderParameter<string?>.QueryBuilderParameter(string, string, StringOperationFilterInput is inaccessible due to its protection level. When checking the generated base class, I found:
I have 2 questions:
The text was updated successfully, but these errors were encountered: