Upgrade GraphQL gem to latest version (1.9.6 or higher)
We're currently using graphql (1.8.1)
while the graphql-ruby
gem is at 1.9.9
Doing so will provide some optimization benefits, such as Lookahead:
GraphQL-Ruby 1.9+ includes GraphQL::Execution::Lookahead for checking whether child fields are selected. You can use this to optimize database access, for example, selecting only the needed fields from the database.
Note that we'll want to ensure that we use BatchLoader::GraphQL
instead of just BatchLoader
, as detailed here: https://github.com/exAspArk/batch-loader/pull/32
Edited by Brett Walker