<How to add kotlin coroutines to Spring graphql al...
# stackoverflow
r
How to add kotlin coroutines to Spring graphql all the way to the DB? I have a spring-boot project with usage of spring-graphql. Simple controller example below. In it there's an invocation of CrudRepository, etc. How do I integrate Kotlin coroutines all the way to the DB? Thanks. import org.springframework.graphql.data.method.annotation.Argument import org.springframework.graphql.data.method.annotation.MutationMapping import org.springframework.graphql.data.method.annotation.QueryMapping import org.springframework.stereotype.Controller @Controller class...