According to the example in the document, I get the following things:
-
SubscriptionServer
needshttp.Server
. -
http.Server
created by koa instance. -
ApolloServer.getMiddleware
requires called after thestart
. -
ApolloServer
needs the closure ofSubscriptionServer
.
It seems to constitute a circular dependency.
Is it possible to use apollo-server-koa
with subscriptions-transport-ws
? Or it must be used with express
?
I would really appreciate it if someone could give me an example for that.