Generated DataFetchers adapted to last runtime changes
@@ -63,9 +63,10 @@ public class GraphQLDataFetchers {
#end
#elseif (${argument.type.inputType})
#if(${argument.list})
- List<${argument.type.classSimpleName}> ${argument.javaName} = graphqlUtils.getListInputObjects((List<Map<String, Object>>) dataFetchingEnvironment.getArgument("${argument.name}"), ${argument.type.classSimpleName}.class);
+ @SuppressWarnings("unchecked")
+ List<${argument.type.classSimpleName}> ${argument.javaName} = (List<${argument.type.classSimpleName}>) graphqlUtils.getInputObject(dataFetchingEnvironment.getArgument("${argument.name}"), "${argument.type.graphQLTypeName}", ${argument.type.classSimpleName}.class);
#else
- ${argument.type.classSimpleName} ${argument.javaName} = graphqlUtils.getInputObject((Map<String, Object>) dataFetchingEnvironment.getArgument("${argument.name}"), false, ${argument.type.classSimpleName}.class);
+ ${argument.type.classSimpleName} ${argument.javaName} = (${argument.type.classSimpleName}) graphqlUtils.getInputObject(dataFetchingEnvironment.getArgument("${argument.name}"), "${argument.type.graphQLTypeName}", ${argument.type.classSimpleName}.class);
#end
#elseif (${argument.type.classSimpleName} == "UUID")
#if(${argument.list})List<#end${argument.type.classSimpleName}#if(${argument.list})>#end ${argument.javaName} = (dataFetchingEnvironment.getArgument("${argument.name}") == null) ? null : UUID.fromString(dataFetchingEnvironment.getArgument("${argument.name}"));
