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
{{ message }}
Repository navigation
Commit 418b804
Browse filesBrowse the repository at this point in the historyBrowse files
log.warn("Cannot find a public getter or field for field '${inputValueDefinition.name}: ${inputGraphQLType.name}' of input type '${graphQLType.name}' on ${clazz.name}. "+
507
+
"If Jackson doesn't map it some other way, e.g. through @JsonProperty, the field's value is rejected or dropped when the input is deserialized.")
508
+
}
509
+
510
+
when (val definition = definitionsByName[inputGraphQLType.name]) {
var mappingAdvice ="Try adding it manually to the dictionary"
474
-
if (javaType.unwrap().name.contains("Map")) {
475
-
mappingAdvice =" or add a class to represent your input type instead of a Map."
476
-
}
477
-
log.warn("Cannot find definition for field '${inputValueDefinition.name}: ${inputGraphQLType.name}' on input type '${graphQLType.name}' -> ${javaType.unwrap().name}. $mappingAdvice")
478
-
}
479
-
}
480
-
}
513
+
val isNewType =!dictionary.containsKey(definition)
514
+
// registered without a class, so a class found for it later still gets set and scanned
clazz ==null->"no class was found for input type '${graphQLType.name}'"
538
+
isPropertyMap(clazz) && isLibraryClass(clazz) ->"'${graphQLType.name}' is bound to ${clazz.name}, which has no type information for its fields"
539
+
else->"${clazz.name} has no public getter or field named '$field'"
482
540
}
541
+
return"Enum type '${enumType.name}' is used by field '$field' of input type '${graphQLType.name}', but its Java enum can't be determined because $reason. "+
542
+
"Pass the enum class for type '${enumType.name}' in the parser's dictionary, or use a class for '${graphQLType.name}' with a public getter or field '$field'."
"Return it from a resolver method or one of those classes, or set SchemaParserOptions.includeUnusedTypes."
639
+
isEnumTypeDefinition->
640
+
"Use it in a resolver method or one of those classes, or set SchemaParserOptions.includeUnusedTypes and pass its enum class in the parser's dictionary."
641
+
isInputObjectTypeDefinition->
642
+
"Use it in an argument of a resolver method, directly or through another input type. SchemaParserOptions.includeUnusedTypes doesn't include input types."
643
+
isScalarTypeDefinition->
644
+
"Use it in a resolver method or one of those classes. SchemaParserOptions.includeUnusedTypes doesn't include scalars."
645
+
else->
646
+
"Return it from a resolver method or one of those classes, or set SchemaParserOptions.includeUnusedTypes and pass a class for it in the parser's dictionary."
647
+
}
648
+
649
+
// determineType only gets the type reference, so the definition using it is looked up for the error message
0 commit comments