#ApolloServerPluginDrainHttpServer how to use it?

8 messages · Page 1 of 1 (latest)

civic widget
#

Can I use that plugin since it needs a server instance of the http server? is it already used under the hood of the graphql module?

distant lodge
#

I highly doubt it is already "built in" the GraphQL Module. You should be able to add the plugin via the plugins property of the GraphQL Module forRoot() config object.

civic widget
#

It requires the app instance

distant lodge
civic widget
#

Already tried that since there is an open thread here for fastify

#

You get an error like cannot call 'on' on undefined

civic widget
#

or wait, do I have to put that into the imports of the app module too?

#

I guess I might have missed that