mercurius-js / mercurius-gateway

Mercurius federation support plugin
MIT License
17 stars 11 forks source link

Federation gateway and server in one application #26

Open psteinroe opened 3 years ago

psteinroe commented 3 years ago

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.

mcollina commented 3 years ago

It's currently not supported.

Vispercept commented 3 years ago

+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.

mcollina commented 3 years ago

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

psteinroe commented 3 years ago

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.

mcollina commented 3 years ago

Yes exactly.

cr4ftx commented 2 years ago

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.