Skip to content

Commit 84aac28

Browse files
committed
Fix check for non-null and list types
1 parent 8f548a1 commit 84aac28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/graphql/query/variables.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def initialize(ctx, ast_variables, provided_variables)
2626
# - Then, fall back to the default value from the query string
2727
# If it's still nil, raise an error if it's required.
2828
variable_type = schema.type_from_ast(ast_variable.type, context: ctx)
29-
if variable_type.nil? || !variable_type.kind.input?
29+
if variable_type.nil? || !variable_type.unwrap.kind.input?
3030
# Pass -- it will get handled by a validator
3131
else
3232
variable_name = ast_variable.name

0 commit comments

Comments
 (0)