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

Bug: Orphan types are ignored since version 3.8.5 #272

Open
psyho opened this issue Apr 4, 2024 · 3 comments
Open

Bug: Orphan types are ignored since version 3.8.5 #272

psyho opened this issue Apr 4, 2024 · 3 comments

Comments

@psyho
Copy link

psyho commented Apr 4, 2024

Up to and including version 3.8.4, the following code worked:

class ApplicationSchema < GraphQL::Schema
  include ApolloFederation::Schema
  
  query QueryType
  
  orphan_types [FooType]
end

Because of the change in #270 this code doesn't work anymore. The orphan types are ignored. I suspect it's because the previous logic overrode the original query type with federation-specific query type lazily, and the current implementation is eager.

The workaround is to define orphan_types before query, but that's still an undesired and breaking change.

@darla-ahlert
Copy link

Just confirming, do you mean 3.8.4/5 here (not v2)?

@psyho psyho changed the title Bug: Orphan types are ignored since version 2.8.5 Bug: Orphan types are ignored since version 3.8.5 Apr 10, 2024
@psyho
Copy link
Author

psyho commented Apr 10, 2024

@darla-ahlert 🤦‍♂️ thank you for pointing it out - yes, I mean 3.8.*

@djkgamc
Copy link

djkgamc commented May 17, 2024

This was my last 4 hours! Shit and thank you. I guess the best workaround is pin to 3.8.4 in the meantime.

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