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

Self-hosted: Apollo Federation: Unable to use schema with @external #4642

Open
yogeshcbsi opened this issue Apr 30, 2024 · 1 comment
Open

Comments

@yogeshcbsi
Copy link

I have been trying to host schema created with Apollo Federation into self hosted Hive but seems like Hive is not composing super-graph correctly when @external is used in schema. Super-graph schema cannot used due to this issue

Example: Schema defined in subgraph1 sub-graph as below:

name: String! @external

Results in subgraph2 sub-graph schema:

name: String! @join__field(graph: SUBGRAPH2)

Expecting it to be resulted in below supergraph schema:

name: String! @join__field(graph: SUBGRAPH2) @join__field(graph: SUBGRAPH1, external: true)

This is field is implemented as part of interface in both subgraphs.

@kamilkisiela
Copy link
Owner

I feel like I need a small reproduction here (SDLs), I can't tell if it's an issue or not based only on informations provided by you.
I don't know how you implement an interface, I don't know if an interface has a @key directive, and if so what fields are part of it etc. There's a lot of missing things here for me to verify it.

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