Open
Description
Describe the bug
calling to_definition
on our schema crashes with "no implicit conversion of Hash into String (TypeError)" as of 2.3.13
Versions
graphql
version: 2.3.13 through 2.4.8 (I haven't tried latest master; 2.3.12 does not exhibit the problem)
rails
(or other framework): 7.1
graphql-batch
: 0.6.0
GraphQL schema
I will try and narrow down which part of the schema is the problem and report back, but I wanted to file this first in case it's obvious from what's already here.
Actual behavior
What specifically went wrong?
Place full backtrace here (if a Ruby exception is involved):
Click to view exception backtrace
no implicit conversion of Hash into String (TypeError)
/Users/eapache/.rvm/gems/ruby-3.3.6@opslevel/gems/graphql-2.3.13/lib/graphql/language/block_string.rb:83:in `block in print'
/Users/eapache/.rvm/gems/ruby-3.3.6@opslevel/gems/graphql-2.3.13/lib/graphql/language/block_string.rb:95:in `break_line'
/Users/eapache/.rvm/gems/ruby-3.3.6@opslevel/gems/graphql-2.3.13/lib/graphql/language/block_string.rb:81:in `print'
/Users/eapache/.rvm/gems/ruby-3.3.6@opslevel/gems/graphql-2.3.13/lib/graphql/language/printer.rb:424:in `print_description'
/Users/eapache/.rvm/gems/ruby-3.3.6@opslevel/gems/graphql-2.3.13/lib/graphql/language/printer.rb:433:in `block in print_field_definitions'
/Users/eapache/.rvm/gems/ruby-3.3.6@opslevel/gems/graphql-2.3.13/lib/graphql/language/printer.rb:432:in `each'
/Users/eapache/.rvm/gems/ruby-3.3.6@opslevel/gems/graphql-2.3.13/lib/graphql/language/printer.rb:432:in `print_field_definitions'
/Users/eapache/.rvm/gems/ruby-3.3.6@opslevel/gems/graphql-2.3.13/lib/graphql/language/printer.rb:270:in `print_object_type_definition'
/Users/eapache/.rvm/gems/ruby-3.3.6@opslevel/gems/graphql-2.3.13/lib/graphql/language/printer.rb:506:in `print_node'
/Users/eapache/.rvm/gems/ruby-3.3.6@opslevel/gems/graphql-2.3.13/lib/graphql/language/printer.rb:71:in `block in print_document'
/Users/eapache/.rvm/gems/ruby-3.3.6@opslevel/gems/graphql-2.3.13/lib/graphql/language/printer.rb:70:in `each'
/Users/eapache/.rvm/gems/ruby-3.3.6@opslevel/gems/graphql-2.3.13/lib/graphql/language/printer.rb:70:in `each_with_index'
/Users/eapache/.rvm/gems/ruby-3.3.6@opslevel/gems/graphql-2.3.13/lib/graphql/language/printer.rb:70:in `print_document'
/Users/eapache/.rvm/gems/ruby-3.3.6@opslevel/gems/graphql-2.3.13/lib/graphql/language/printer.rb:466:in `print_node'
/Users/eapache/.rvm/gems/ruby-3.3.6@opslevel/gems/graphql-2.3.13/lib/graphql/language/printer.rb:57:in `print'
/Users/eapache/.rvm/gems/ruby-3.3.6@opslevel/gems/graphql-2.3.13/lib/graphql/schema/printer.rb:88:in `print_schema'
/Users/eapache/.rvm/gems/ruby-3.3.6@opslevel/gems/graphql-2.3.13/lib/graphql/schema/printer.rb:83:in `print_schema'
/Users/eapache/.rvm/gems/ruby-3.3.6@opslevel/gems/graphql-2.3.13/lib/graphql/schema.rb:293:in `to_definition'
Metadata
Assignees
Labels
No labels