Skip to content

Bug: Orphan types are ignored since version 3.8.5 #272

@psyho

Description

@psyho

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions