How can I hook into fast refresh? #9006
Unanswered
remihuigen
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've extended the express server with a second Apollo server on /api/public/graphql. Reason is that i wanna serve different schemas for public and private api. The public schema is a filtered version of the private schema.
In the /api/public/grapghql route i'm creating this server as follows
This all works fine, except that a new server is created each time Keystone is refreshed, without closing the old server.
So i wanna be able to hook into that and run
server.stop()
Any suggestions on how to do that?
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions