We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0b411f commit dfc98a4Copy full SHA for dfc98a4
1 file changed
src/GraphQL.Authorization/AuthorizationValidationRule.cs
@@ -77,7 +77,8 @@ public Task<INodeVisitor> ValidateAsync(ValidationContext context)
77
// If some supplied field does not exist in the variable type then some other
78
// validation rule should check that but here we should just ignore that
79
// "unknown" field.
80
- if (context.Inputs.TryGetValue(variableRef.Name, out object input) &&
+ if (context.Inputs != null &&
81
+ context.Inputs.TryGetValue(variableRef.Name, out object input) &&
82
input is Dictionary<string, object> fieldsValues)
83
{
84
foreach (var field in variableType.Fields)
0 commit comments