Skip to content

Commit b8c4899

Browse files
committed
Update docs for Kotlin method signatures
See gh-954
1 parent 0413950 commit b8c4899

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spring-graphql-docs/modules/ROOT/pages/controllers.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ Schema mapping handler methods can return:
213213
- A resolved value of any type.
214214
- `Mono` and `Flux` for asynchronous value(s). Supported for controller methods and for
215215
any `DataFetcher` as described in xref:request-execution.adoc#execution.reactive-datafetcher[Reactive `DataFetcher`].
216+
- Kotlin coroutine and `Flow` are adapted to `Mono` and `Flux`.
216217
- `java.util.concurrent.Callable` to have the value(s) produced asynchronously.
217218
For this to work, `AnnotatedControllerConfigurer` must be configured with an `Executor`.
218219

@@ -753,6 +754,9 @@ Batch mapping methods can return:
753754
| Imperative variants to be invoked asynchronously. For this to work,
754755
`AnnotatedControllerConfigurer` must be configured with an `Executor`.
755756

757+
| Kotlin Coroutine with `Map<K,V>`, Kotlin `Flow<K,V>`
758+
| Adapted to `Mono<Map<K,V>` and `Flux<V>`.
759+
756760
|===
757761

758762

0 commit comments

Comments
 (0)