From 95a8ca2295b5bf7729ebbce56889638758544157 Mon Sep 17 00:00:00 2001 From: "Sam \"Betty\" McKoy" Date: Fri, 5 Dec 2025 09:19:49 +1300 Subject: [PATCH] Pass docvariables through to directives so they can use arguments "Variable or value used for argument 'if' does not match argument type 'Boolean!' on field 'include'" --- src/EntityGraphQL/Compiler/GqlNodes/GraphQLQueryStatement.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EntityGraphQL/Compiler/GqlNodes/GraphQLQueryStatement.cs b/src/EntityGraphQL/Compiler/GqlNodes/GraphQLQueryStatement.cs index 0450eb25..977d5410 100644 --- a/src/EntityGraphQL/Compiler/GqlNodes/GraphQLQueryStatement.cs +++ b/src/EntityGraphQL/Compiler/GqlNodes/GraphQLQueryStatement.cs @@ -27,7 +27,7 @@ public GraphQLQueryStatement(ISchemaProvider schema, string? name, Expression no // apply directives foreach (var directive in field.Directives) { - if (directive.VisitNode(ExecutableDirectiveLocation.Field, Schema, field, Arguments, null, null) == null) + if (directive.VisitNode(ExecutableDirectiveLocation.Field, Schema, field, Arguments, OpVariableParameter, docVariables) == null) return (null, false, []); } (var data, var didExecute) = await CompileAndExecuteNodeAsync(compileContext, context!, serviceProvider, fragments, field, docVariables);