Skip to content

Visibility: require all root config before preloading#5635

Open
rmosolgo wants to merge 1 commit into
masterfrom
visibility-preload-config-fix
Open

Visibility: require all root config before preloading#5635
rmosolgo wants to merge 1 commit into
masterfrom
visibility-preload-config-fix

Conversation

@rmosolgo
Copy link
Copy Markdown
Owner

Fixes #5454

GraphQL::Schema::Visibility didn't handle it right when root-level configurations came after use ... preload: true. It tried to, but profiles still weren't actually preloaded correctly.

It would probably be possible to have profiles rebuild themselves whenever new root-level configurations (query, subscription, mutation, orphan_types, introspection) were added, but this would make for slower application boot. Instead, it's probably better to just require things to be in the right order.

TODO:

  • What about inheritance?

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

Successfully merging this pull request may close these issues.

GraphQL::Schema::Visibility preload crashes if query type is not set first

1 participant