You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It works when the method is declared with suspend, but not without.
rstoyanchev
changed the title
Support @QueryMapping returns Flow type result
TypeMismatchError if controller method returning Flow is declared without suspend keyword
Jun 5, 2024
I tried to update my example project to use
Flow
, Spring Boot 3.3.0/Spring GraphQL 1.3 includes the Kotlin Flow type support.But run the following tests in the
QueryTests
.And I got the error
[TypeMismatchError{path=[allPosts], expectedType=[Post!]}]
.The example project here: /~https://github.com/hantsy/spring-graphql-sample/tree/master/spring-graphql-rsocket-kotlin-co
#954 resolved the
Flow
return type, it should support Flow in@QueryMapping
also.The text was updated successfully, but these errors were encountered: