if (viewFields.size() > 0) {
if (AnnotationUtils.isNullValue(graphQLController.rootQueriesObjectName())) {
rootViewFieldsBuilder.addAll(viewFields);
}
else {
<BUG>GraphQLFieldDefinition.Builder rootViewField = GraphQLFieldDefinition.newFieldDefinition().name(graphQLController.rootQueriesObjectName()).staticValue(new Object());
</BUG>
GraphQLObjectType.Builder viewerObject = GraphQLObjectType.newObject().name(graphQLController.rootQueriesObjectName());
viewerObject.fields(viewFields);
rootViewField.type(viewerObject.build());

if (viewFields.size() > 0) {
if (AnnotationUtils.isNullValue(graphQLController.rootQueriesObjectName())) {
rootViewFieldsBuilder.addAll(viewFields);
}
else {
GraphQLFieldDefinition.Builder rootViewField = GraphQLFieldDefinition.newFieldDefinition().name(graphQLController.rootQueriesObjectName()).staticValue(queryHandler);
GraphQLObjectType.Builder viewerObject = GraphQLObjectType.newObject().name(graphQLController.rootQueriesObjectName());
viewerObject.fields(viewFields);
rootViewField.type(viewerObject.build());
