In Namespacing GraphQL constants in Rails apps, I demonstrated how to nest constants defined in a Rails app’s
app/graphql/ directory under a top-level
ApplicationGraph module with a little bit of configuration.
I extracted the necessary configuration to a tiny Rails plugin and released it as a gem named
graphql-rails-namespace. Now all that’s needed, more or less, is
bundle add graphql-rails-namespace.