This gem allows you to inspect graphql queries in a more readable format.
becomes this …
You can install it as a gem:
gem install graphql-rails_logger
or add it into a Gemfile (Bundler):
By default this gem formats params only for
If you want to change this behaviour, add
config/initializers/graphql_rails_logger.rb file and set proper controller and actions like this:
There is an option to suppress (hide) the GraphQL Introspection Query from the console output. This may be helpful to declutter the console during client testing as these can be rather lengthy.
The theme can be configured as well. The theme is applied using the rouge gem, where all available options can be found. The default value is