diff --git a/lib/graphql.rb b/lib/graphql.rb index 17eb3ed363..474fcf84d3 100644 --- a/lib/graphql.rb +++ b/lib/graphql.rb @@ -87,6 +87,7 @@ class << self # @return [void] def ensure_eager_load! if production? && !eager_loading? + puts caller warn <<~WARNING GraphQL-Ruby thinks this is a production deployment but didn't eager-load its constants. Address this by: