File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/main/kotlin/graphql/kickstart/tools Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ internal class SchemaClassScanner(
91
91
do {
92
92
val unusedDefinitions = (definitionsByName.values - (dictionary.keys.toSet() + unvalidatedTypes))
93
93
.filter { definition -> definition.name != " PageInfo" }
94
+ .filter { isCompositeOrEnumType(it) }
94
95
.distinct()
95
96
96
97
if (unusedDefinitions.isEmpty()) {
@@ -104,6 +105,10 @@ internal class SchemaClassScanner(
104
105
return validateAndCreateResult(rootTypeHolder)
105
106
}
106
107
108
+ private fun isCompositeOrEnumType (definition : TypeDefinition <* >): Boolean {
109
+ return definition is ObjectTypeDefinition || definition is InterfaceTypeDefinition || definition is UnionTypeDefinition || definition is EnumTypeDefinition
110
+ }
111
+
107
112
private fun scanQueue (): Boolean {
108
113
if (queue.isEmpty()) {
109
114
return false
You can’t perform that action at this time.
0 commit comments