Replies: 1 comment 1 reply
-
|
Currently we only support returning Mono and Flux for data fetchers. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In these days, I tried to update Dgs/Kotlin Coroutines example, when I updated the QueryTests.
And run it, and got the following exception.
Can't resolve value (/allPosts) : type mismatch error, expected type LIST got class kotlinx.coroutines.flow.FlowKt__BuildersKt$flowOf$$inlined$unsafeFlow$1The query component is:
The testing codes is here, https://github.com/hantsy/spring-graphql-sample/blob/master/dgs-kotlin-co/src/test/kotlin/com/example/demo/QueryTests.kt
I got the similar errors when execute the
allPostsin the /graphiql web interfaces.{ "errors": [ { "message": "Can't resolve value (/allPosts) : type mismatch error, expected type LIST", "path": [ "allPosts" ], "extensions": { "classification": "DataFetchingException" } } ], "data": null }Beta Was this translation helpful? Give feedback.
All reactions