bjorn 9 лет назад
Родитель
Сommit
b506b98b68
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      graphql/rules.lua

+ 1 - 1
graphql/rules.lua

@@ -485,7 +485,7 @@ function rules.variableUsageAllowed(node, context)
 
               return false
             elseif subType.__type == 'NonNull' then
-              return typeIsSubTypeOf(subType.ofType, superType)
+              return isTypeSubTypeOf(subType.ofType, superType)
             end
 
             if superType.__type == 'List' then