DEV Community

loading...

Discussion on: Getting Started with Apollo Federation and Gateway

Collapse
mandiwise profile image
Mandi Wise Author

Automatic reloading of the gateway can be an issue, even with wait-on in place. You may want to look at some experimental features of Apollo Gateway (github.com/apollographql/federatio...) to help facilitate this, or look into managed federation instead.

Collapse
kieronjmckenna profile image
kieronjmckenna

Easy solution to the development problem I referenced is to use wait-on in index.js before building the gateway rather than in the command line.

This way when nodemon restarts the gateway server it waits for the other services on every restart, not just the first time we run the command.

Thought I'd mention this for anyone who ran into the same problem.