-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broken Node Interface in new interpreter runtime #2082
Comments
Hey, thanks for reporting this! There's a work-around listed here: https://github.com/rmosolgo/graphql-ruby/blob/master/guides/queries/interpreter.md#installation. Could you give it a try and see if it fixes this for you? But maybe the library can be improved so that the suggested code change is not required. I will take another look before releasing. |
Thanks, it does work after replacing field :node, field: GraphQL::Relay::Node.field
field :nodes, field: GraphQL::Relay::Node.plural_field with add_field GraphQL::Types::Relay::NodeField
add_field GraphQL::Types::Relay::NodesField |
The previous config will be supported with a warning in the next version. Thanks for reporting this! |
New interpreter from release 1.9.0 (#1884) has broken the node interface.
Given node interface fields are included in schema and new interpreter is enabled:
and
object_from_id
is implemented as a debugger call:When present with query below:
It responds with error below:
And the
byebug
debugger call was never triggered.Expect it to trigger debugger call without errors.
It is reproducible in RubyGem version 1.9.pre2 and 1.9.pre3 using ruby version 2.5.3.
After disabling new interpreter by removing
use GraphQL::Execution::Interpreter
, it successfully triggers the debugger call.The text was updated successfully, but these errors were encountered: