mercurius-gateway icon indicating copy to clipboard operation
mercurius-gateway copied to clipboard

Federation gateway and server in one application

Open psteinroe opened this issue 3 years ago • 6 comments

Hi,

is it possible to provide (a small) part of the federated schema from the same server the gateway is running on? From the docs (and also apollos docs), it seems like the gateway not only should but also has to be running separately and cannot merge a local schema into the federated schema.

psteinroe avatar Apr 30 '21 06:04 psteinroe

It's currently not supported.

mcollina avatar Apr 30 '21 06:04 mcollina

+1 for schema and resolver inside the gateway instance

This feature would be awesome. Sometimes running a whole server for some little adjustments and extensions is overkill.

Vispercept avatar Apr 30 '21 13:04 Vispercept

Would you like to send a Pull Request to address this issue? Remember to add unit tests.

mcollina avatar Apr 30 '21 13:04 mcollina

Do you have a hint where we can start? I was thinking to join the schemas and resolvers created by the gateway with the local ones but I am not quite sure yet what side effects that may have.

psteinroe avatar May 01 '21 18:05 psteinroe

Yes exactly.

mcollina avatar May 01 '21 20:05 mcollina

Hi guys, any news on this feature ?

I looked at https://github.com/autotelic/mercurius-remote-schema but the plugin is unmaintained and its graphql dependency is outdated.

cr4ftx avatar Apr 04 '22 18:04 cr4ftx