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
@@ -143,11 +143,11 @@ internal class FieldResolverScanner(val options: SchemaParserOptions) {
143
143
144
144
val sourceName =if (field.sourceLocation !=null&& field.sourceLocation.sourceName !=null) field.sourceLocation.sourceName else"<unknown>"
145
145
val sourceLocation =if (field.sourceLocation !=null) "$sourceName:${field.sourceLocation.line}"else"<unknown>"
146
-
return"No method${if (scannedProperties) " or field"else""} found as defined in $sourceLocation with any of the following signatures (with or without one of $allowedLastArgumentTypes as the last argument), in priority order:\n${signatures.joinToString("\n")}"
146
+
return"No method${if (scannedProperties) " or field"else""} found as defined in schema $sourceLocation with any of the following signatures (with or without one of $allowedLastArgumentTypes as the last argument), in priority order:\n${signatures.joinToString("\n")}"
error("Could not resolve type variable '${TypeUtils.toLongString(type)}' because declaring type is not parameterized: ${TypeUtils.toString(declaringType)}")
103
103
}
104
-
105
-
unwrapGenericType(TypeUtils.determineTypeArguments(getRawClass(mostSpecificType), declaringType)[type] ?: error("No type variable found for: ${TypeUtils.toLongString(type)}"))
106
104
}
107
-
isWildcardTypeImpl-> type.upperBounds.firstOrNull() ?:throw error("Unable to unwrap type, wildcard has no upper bound: $type")
if (method.getAnnotation(Batched::class.java) !=null) {
22
24
if (!search.allowBatched) {
23
-
throwResolverError("The @Batched annotation is only allowed on non-root resolver methods, but it was found on ${search.type.name}#${method.name}!")
25
+
throwResolverError("The @Batched annotation is only allowed on non-root resolver methods, but it was found on ${search.type.unwrap().name}#${method.name}!")
24
26
}
25
27
26
28
returntrue
27
29
}
28
-
29
30
returnfalse
30
31
}
31
32
}
@@ -98,7 +99,8 @@ internal class MethodFieldResolver(field: FieldDefinition, search: FieldResolver
0 commit comments