apollographql / apollo-kotlin-execution

GraphQL execution algorithms
https://apollographql.github.io/apollo-kotlin-execution/
MIT License
2 stars 2 forks source link

Support for suspending resolvers #18

Open brezinajn opened 1 month ago

brezinajn commented 1 month ago

It would be handy to have a first party support for suspending functions

@GraphQLQueryRoot
class Query{
    suspend fun foo(): Int {
        ...
    }
} {

There are some alternatives but are very non-idiomatic and/or have performance implications (blocking).

martinbonnin commented 1 month ago

+1. Coroutine support + parallel execution is one of the big things to be worked on.