ExpediaGroup / graphql-kotlin

Libraries for running GraphQL in Kotlin
https://opensource.expediagroup.com/graphql-kotlin/
Apache License 2.0
1.74k stars 345 forks source link

Update ktor sample for subscriptions #1587

Closed rocketraman closed 1 year ago

rocketraman commented 1 year ago

Is your feature request related to a problem? Please describe.

There is a ktor sample in the source (https://github.com/ExpediaGroup/graphql-kotlin/tree/master/examples/server/ktor-server). However, as far as I know this sample does not demo GraphQL subscriptions.

sustainjane98 commented 1 year ago

I would really like to see such an example. But it seems like it isn't even working, bc when I returned a custom Publisher, I get an exception, that the type of it cannot be read out.

dariuszkuc commented 1 year ago

example added in https://github.com/ExpediaGroup/graphql-kotlin/pull/1774