File tree Expand file tree Collapse file tree
graphql-java/src/main/kotlin/internal Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -369,11 +369,11 @@ fun <T : Any> TransformContext.addObjectType(
369369 val allInterfaces = type.generateAllInterfacesSequence().toList()
370370
371371 @Suppress(" UNCHECKED_CAST" )
372- val allGetterBlocks = (allInterfaces.map { it.onGetBlocks } + type.onGetBlocks)
372+ val allGetterBlocks = (allInterfaces.flatMap { it.onGetBlocks } + type.onGetBlocks)
373373 as List <GraphQLGetterBlock <T , * >>
374374
375375 @Suppress(" UNCHECKED_CAST" )
376- val allGetterBlockingBlocks = (allInterfaces.map { it.onGetBlockingBlocks } + type.onGetBlockingBlocks)
376+ val allGetterBlockingBlocks = (allInterfaces.flatMap { it.onGetBlockingBlocks } + type.onGetBlockingBlocks)
377377 as List <GraphQLGetterBlockingBlock <T , * >>
378378
379379 val allFields = (allInterfaces.flatMap { it.fields } + type.fields)
You can’t perform that action at this time.
0 commit comments