rmosolgo/graphql-ruby

Including a union type in extra_types doesn't include its possible_types

Amnesthesia opened this issue · 1 comments

Describe the bug

As of 2.3.0, Unions were no longer allowed to be passed to orphan_types, but when you pass the union to extra_types instead, its possible_types dont get included and the union becomes empty in the generated schema, with no members. This happens even if you pass all the possible_types to extra_types as well

Versions

graphql version: graphql-pro 1.28.1, graphql 2.3.14
rails (or other framework): rails 7.0.3.4

Oh! Well what if you pass the --

This happens even if you pass all the possible_types to extra_types as well

Oh 😩 . Sorry for the trouble and thanks for reporting this -- I think it should work when the possible_types are passed that way. I'll take a look soon and follow up back here!