Closed
Description
In this project, we have separated the processes of creating objects and mapping requests. We create objects through Kotlin DSL. @Controller
breaks context startup.
Need like this
@SchemaMapping
class TestRes(
private val testService: TestService,
private val url: String,
) {
@QueryMapping
suspend fun test(): Test= Test(100, "100500")
}
But now we have to use workaround
@Controller
interface ControllerMarker
@SchemaMapping
class TestRes(
private val testService: TestService,
private val url: String,
): ControllerMarker {
@QueryMapping
suspend fun test(): Test= Test(100, "100500")
}
You need the ability to do the same as in the analogy with RSocket.
Metadata
Metadata
Assignees
Labels
No labels