Skip to content

Support @SchemaMapping + @BatchMapping on a class when looking for handlers along with @Controller #287

Closed
@geliotropvimd

Description

@geliotropvimd

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions