Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extending types across services #48

Open
shlomokraus opened this issue Sep 25, 2019 · 2 comments
Open

Extending types across services #48

shlomokraus opened this issue Sep 25, 2019 · 2 comments

Comments

@shlomokraus
Copy link

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?

@shawnmcknight
Copy link
Member

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.

@shawnmcknight shawnmcknight removed their assignment Oct 5, 2019
@ujwal-setlur
Copy link

Would really really love this functionality!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants