moleculerjs / moleculer-apollo-server

:rocket: Apollo GraphQL server for Moleculer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extending types across services

shlomokraus opened this issue · comments

Say I have type User and it has 2 properties.
How can I have 2 different services define and resolve those properties (ie each extend the root object), similar to what happens today with gql federation?

Related: #39

moleculer-apollo-server predates apollo's federation specification and not all concepts are compatible. At this time, the schema is not built using buildFederatedSchema so its unlikely there is any satisfactory way to do what you're asking. I'm assuming that your question relates to the ability to extend types that were defined by other services, but if I'm mistaken then it might be helpful if you provided an example.

I don't currently have time to look into what it will take to make moleculer-apollo-server compatible with federation, but in a few months I will free up and be able to hopefully take a dive in. In the meantime, PRs are always welcomed.

Would really really love this functionality!