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

How to integrate apollo federation? #1

Open
LucienLee opened this issue Dec 26, 2019 · 1 comment
Open

How to integrate apollo federation? #1

LucienLee opened this issue Dec 26, 2019 · 1 comment

Comments

@LucienLee
Copy link

In your code of build schema, you generate code with GraphQLSchema directly.

In the apollo official guide, they suggest build schema with buildFederatedSchema. In this function, it transforms schema and adds relative directives.

Could you help me that how to set up the apollo federation?

@oguimbal
Copy link
Owner

Hi @LucienLee , i've never used federated schemas myself, but it would seem that you're not the only one wondering how to build one from an existing schema, there is an open pull request which would make buildFederatedSchema accept GraphQLSchema as argument.

If you cannot wait for this to be merged, I would suggest to explore this pull request and check if you can mimic its behaviour to convert an existing schema to something that buildFederatedSchema accepts.

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

2 participants