e.g. ``` class CustomSchemaGeneratorHooks : Schema...
# graphql
d
e.g.
Copy code
class CustomSchemaGeneratorHooks : SchemaGeneratorHooks {
    val customGraphQLType = GraphQLObjectType.newObject()

    override fun willGenerateGraphQLType(type: KType): GraphQLType? = when (type.classifier) {
        Stream::class -> GraphQLList.list(customGraphQLType)
        else -> null
    }
}