Hi, Thanks for the good work on this project 馃帀 !
I try to upgrade my project from 1.8.6 to 1.9.5 to get Types::JSON and field(..., resolver_method:), but I have a error when using 1.9.5. I test my project with 1.9.4 and everything work. I get the error : wrong number of arguments (given 1, expected 5). The problem seems to be in context.rb in my FieldResolutionContext child. This is the code :
class FieldResolutionContext < GraphQL::Query::Context::FieldResolutionContext
include SharedMethods
def initialize(context:, key:, irep_node:, parent:, object:)
super
@evenix_context = parent.evenix_context
@evenix_core = parent.evenix_core
end
end
super don't seem to pass all the 5 params that initialize have. Is this a knowing problem or did I need to change my implementation. Thanks a lot !
This is my complet error stack :
wrong number of arguments (given 1, expected 5)
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/query/context.rb:206:in `initialize'
/Users/justinbrulotte/Documents/ONE DRIVE/COMPAGNIE/EVENIX/CODE/evenix_web/backend/app/graphql/graph/context.rb:28:in `initialize'
/Users/justinbrulotte/Documents/ONE DRIVE/COMPAGNIE/EVENIX/CODE/evenix_web/backend/app/graphql/graph/context.rb:12:in `new'
/Users/justinbrulotte/Documents/ONE DRIVE/COMPAGNIE/EVENIX/CODE/evenix_web/backend/app/graphql/graph/context.rb:12:in `spawn_child'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/execute.rb:86:in `block in resolve_selection'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/execute.rb:85:in `each'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/execute.rb:85:in `resolve_selection'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/execute.rb:56:in `block in resolve_root_selection'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/tracing.rb:62:in `block in trace'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/tracing.rb:76:in `call_tracers'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/tracing.rb:62:in `trace'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/execute.rb:49:in `resolve_root_selection'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/execute.rb:31:in `begin_query'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/multiplex.rb:112:in `begin_query'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/multiplex.rb:84:in `block in run_as_multiplex'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/multiplex.rb:83:in `map'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/multiplex.rb:83:in `run_as_multiplex'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/multiplex.rb:62:in `block (2 levels) in run_queries'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/multiplex.rb:182:in `block in instrument_and_analyze'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/instrumentation.rb:29:in `block (2 levels) in apply_instrumenters'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/instrumentation.rb:46:in `block (2 levels) in each_query_call_hooks'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/instrumentation.rb:41:in `each_query_call_hooks'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/instrumentation.rb:45:in `block in each_query_call_hooks'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/instrumentation.rb:72:in `call_hooks'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/instrumentation.rb:44:in `each_query_call_hooks'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/instrumentation.rb:27:in `block in apply_instrumenters'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/instrumentation.rb:72:in `call_hooks'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/instrumentation.rb:26:in `apply_instrumenters'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/multiplex.rb:174:in `instrument_and_analyze'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/multiplex.rb:61:in `block in run_queries'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/tracing.rb:62:in `block in trace'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/tracing.rb:76:in `call_tracers'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/tracing.rb:62:in `trace'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/multiplex.rb:59:in `run_queries'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/multiplex.rb:49:in `run_all'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/schema.rb:376:in `block in multiplex'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/schema.rb:1205:in `with_definition_error_check'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/schema.rb:375:in `multiplex'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/schema.rb:352:in `execute'
/Users/justinbrulotte/.rvm/rubies/ruby-2.6.1/lib/ruby/2.6.0/forwardable.rb:230:in `execute'
/Users/justinbrulotte/Documents/ONE DRIVE/COMPAGNIE/EVENIX/CODE/evenix_web/backend/app/controllers/graphql_controller.rb:11:in `execute'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/abstract_controller/base.rb:194:in `process_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_controller/metal/rendering.rb:30:in `process_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:132:in `run_callbacks'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/abstract_controller/callbacks.rb:41:in `process_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_controller/metal/rescue.rb:22:in `process_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activesupport-5.2.3/lib/active_support/notifications.rb:168:in `block in instrument'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activesupport-5.2.3/lib/active_support/notifications/instrumenter.rb:23:in `instrument'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activesupport-5.2.3/lib/active_support/notifications.rb:168:in `instrument'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_controller/metal/instrumentation.rb:32:in `process_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_controller/metal/params_wrapper.rb:256:in `process_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activerecord-5.2.3/lib/active_record/railties/controller_runtime.rb:24:in `process_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/abstract_controller/base.rb:134:in `process'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_controller/metal.rb:191:in `dispatch'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_controller/metal.rb:252:in `dispatch'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/routing/route_set.rb:52:in `dispatch'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/routing/route_set.rb:34:in `serve'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/journey/router.rb:52:in `block in serve'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/journey/router.rb:35:in `each'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/journey/router.rb:35:in `serve'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/routing/route_set.rb:840:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/rack-attack-5.4.2/lib/rack/attack.rb:182:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/rack-2.0.7/lib/rack/etag.rb:25:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/rack-2.0.7/lib/rack/conditional_get.rb:38:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/rack-2.0.7/lib/rack/head.rb:12:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activerecord-5.2.3/lib/active_record/migration.rb:559:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:98:in `run_callbacks'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/middleware/executor.rb:14:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/railties-5.2.3/lib/rails/rack/logger.rb:38:in `call_app'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/railties-5.2.3/lib/rails/rack/logger.rb:26:in `block in call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activesupport-5.2.3/lib/active_support/tagged_logging.rb:71:in `block in tagged'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activesupport-5.2.3/lib/active_support/tagged_logging.rb:28:in `tagged'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activesupport-5.2.3/lib/active_support/tagged_logging.rb:71:in `tagged'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/railties-5.2.3/lib/rails/rack/logger.rb:26:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/middleware/request_id.rb:27:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/rack-2.0.7/lib/rack/runtime.rb:22:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activesupport-5.2.3/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/middleware/executor.rb:14:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/rack-2.0.7/lib/rack/sendfile.rb:111:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/rack-utf8_sanitizer-1.6.0/lib/rack/utf8_sanitizer.rb:22:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/railties-5.2.3/lib/rails/engine.rb:524:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/puma-4.2.1/lib/puma/configuration.rb:228:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/puma-4.2.1/lib/puma/server.rb:667:in `handle_request'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/puma-4.2.1/lib/puma/server.rb:470:in `process_client'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/puma-4.2.1/lib/puma/server.rb:328:in `block in run'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/puma-4.2.1/lib/puma/thread_pool.rb:134:in `block in spawn_thread'
Completed 500 Internal Server Error in 192ms (Views: 0.9ms | ActiveRecord: 113.9ms)
Hi, sorry about the hangup! That API was changed in order to improve performance. You should change the arguments of initialize into positional arguments by removing the trailing : in each one. Here's the PR for reference:
https://github.com/rmosolgo/graphql-ruby/pull/2244
And your change would look something like this:
- def initialize(context:, key:, irep_node:, parent:, object:)
+ def initialize(context, key, irep_node, parent, object)
If that doesn't work, please reopen this with the new error message and stack trace!
I just change the function and I get the same error :
wrong number of arguments (given 1, expected 5)
/Users/justinbrulotte/Documents/ONE DRIVE/COMPAGNIE/EVENIX/CODE/evenix-web/backend/app/graphql/graph/context.rb:27:in `initialize'
/Users/justinbrulotte/Documents/ONE DRIVE/COMPAGNIE/EVENIX/CODE/evenix-web/backend/app/graphql/graph/context.rb:12:in `new'
/Users/justinbrulotte/Documents/ONE DRIVE/COMPAGNIE/EVENIX/CODE/evenix-web/backend/app/graphql/graph/context.rb:12:in `spawn_child'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/execute.rb:86:in `block in resolve_selection'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/execute.rb:85:in `each'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/execute.rb:85:in `resolve_selection'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/execute.rb:56:in `block in resolve_root_selection'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/tracing.rb:62:in `block in trace'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/tracing.rb:76:in `call_tracers'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/tracing.rb:62:in `trace'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/execute.rb:49:in `resolve_root_selection'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/execute.rb:31:in `begin_query'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/multiplex.rb:112:in `begin_query'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/multiplex.rb:84:in `block in run_as_multiplex'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/multiplex.rb:83:in `map'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/multiplex.rb:83:in `run_as_multiplex'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/multiplex.rb:62:in `block (2 levels) in run_queries'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/multiplex.rb:186:in `block in instrument_and_analyze'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/instrumentation.rb:29:in `block (2 levels) in apply_instrumenters'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/instrumentation.rb:46:in `block (2 levels) in each_query_call_hooks'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/instrumentation.rb:41:in `each_query_call_hooks'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/instrumentation.rb:45:in `block in each_query_call_hooks'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/instrumentation.rb:72:in `call_hooks'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/instrumentation.rb:44:in `each_query_call_hooks'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/instrumentation.rb:27:in `block in apply_instrumenters'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/instrumentation.rb:72:in `call_hooks'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/instrumentation.rb:26:in `apply_instrumenters'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/multiplex.rb:174:in `instrument_and_analyze'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/multiplex.rb:61:in `block in run_queries'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/tracing.rb:62:in `block in trace'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/tracing.rb:76:in `call_tracers'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/tracing.rb:62:in `trace'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/multiplex.rb:59:in `run_queries'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/multiplex.rb:49:in `run_all'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/schema.rb:392:in `block in multiplex'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/schema.rb:1279:in `with_definition_error_check'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/schema.rb:391:in `multiplex'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/schema.rb:368:in `execute'
/Users/justinbrulotte/.rvm/rubies/ruby-2.6.1/lib/ruby/2.6.0/forwardable.rb:230:in `execute'
/Users/justinbrulotte/Documents/ONE DRIVE/COMPAGNIE/EVENIX/CODE/evenix-web/backend/app/controllers/graphql_controller.rb:11:in `execute'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/abstract_controller/base.rb:194:in `process_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_controller/metal/rendering.rb:30:in `process_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:132:in `run_callbacks'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/abstract_controller/callbacks.rb:41:in `process_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_controller/metal/rescue.rb:22:in `process_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activesupport-5.2.3/lib/active_support/notifications.rb:168:in `block in instrument'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activesupport-5.2.3/lib/active_support/notifications/instrumenter.rb:23:in `instrument'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activesupport-5.2.3/lib/active_support/notifications.rb:168:in `instrument'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_controller/metal/instrumentation.rb:32:in `process_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_controller/metal/params_wrapper.rb:256:in `process_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activerecord-5.2.3/lib/active_record/railties/controller_runtime.rb:24:in `process_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/abstract_controller/base.rb:134:in `process'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_controller/metal.rb:191:in `dispatch'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_controller/metal.rb:252:in `dispatch'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/routing/route_set.rb:52:in `dispatch'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/routing/route_set.rb:34:in `serve'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/journey/router.rb:52:in `block in serve'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/journey/router.rb:35:in `each'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/journey/router.rb:35:in `serve'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/routing/route_set.rb:840:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/rack-attack-6.2.0/lib/rack/attack.rb:169:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/rack-2.0.7/lib/rack/etag.rb:25:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/rack-2.0.7/lib/rack/conditional_get.rb:38:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/rack-2.0.7/lib/rack/head.rb:12:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activerecord-5.2.3/lib/active_record/migration.rb:559:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:98:in `run_callbacks'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/middleware/executor.rb:14:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/railties-5.2.3/lib/rails/rack/logger.rb:38:in `call_app'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/railties-5.2.3/lib/rails/rack/logger.rb:26:in `block in call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activesupport-5.2.3/lib/active_support/tagged_logging.rb:71:in `block in tagged'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activesupport-5.2.3/lib/active_support/tagged_logging.rb:28:in `tagged'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activesupport-5.2.3/lib/active_support/tagged_logging.rb:71:in `tagged'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/railties-5.2.3/lib/rails/rack/logger.rb:26:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/middleware/request_id.rb:27:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/rack-2.0.7/lib/rack/runtime.rb:22:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activesupport-5.2.3/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/middleware/executor.rb:14:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/rack-2.0.7/lib/rack/sendfile.rb:111:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/rack-utf8_sanitizer-1.6.0/lib/rack/utf8_sanitizer.rb:22:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/railties-5.2.3/lib/rails/engine.rb:524:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/puma-3.12.1/lib/puma/configuration.rb:227:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/puma-3.12.1/lib/puma/server.rb:660:in `handle_request'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/puma-3.12.1/lib/puma/server.rb:474:in `process_client'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/puma-3.12.1/lib/puma/server.rb:334:in `block in run'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/puma-3.12.1/lib/puma/thread_pool.rb:135:in `block in spawn_thread'
/Users/justinbrulotte/Documents/ONE DRIVE/COMPAGNIE/EVENIX/CODE/evenix-web/backend/app/graphql/graph/context.rb:27:in `initialize'
/Users/justinbrulotte/Documents/ONE DRIVE/COMPAGNIE/EVENIX/CODE/evenix-web/backend/app/graphql/graph/context.rb:12:in `new'
/Users/justinbrulotte/Documents/ONE DRIVE/COMPAGNIE/EVENIX/CODE/evenix-web/backend/app/graphql/graph/context.rb:12:in `spawn_child'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/execute.rb:86:in `block in resolve_selection'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/execute.rb:85:in `each'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/execute.rb:85:in `resolve_selection'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/execute.rb:56:in `block in resolve_root_selection'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/tracing.rb:62:in `block in trace'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/tracing.rb:76:in `call_tracers'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/tracing.rb:62:in `trace'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/execute.rb:49:in `resolve_root_selection'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/execute.rb:31:in `begin_query'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/multiplex.rb:112:in `begin_query'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/multiplex.rb:84:in `block in run_as_multiplex'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/multiplex.rb:83:in `map'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/multiplex.rb:83:in `run_as_multiplex'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/multiplex.rb:62:in `block (2 levels) in run_queries'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/multiplex.rb:186:in `block in instrument_and_analyze'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/instrumentation.rb:29:in `block (2 levels) in apply_instrumenters'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/instrumentation.rb:46:in `block (2 levels) in each_query_call_hooks'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/instrumentation.rb:41:in `each_query_call_hooks'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/instrumentation.rb:45:in `block in each_query_call_hooks'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/instrumentation.rb:72:in `call_hooks'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/instrumentation.rb:44:in `each_query_call_hooks'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/instrumentation.rb:27:in `block in apply_instrumenters'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/instrumentation.rb:72:in `call_hooks'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/instrumentation.rb:26:in `apply_instrumenters'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/multiplex.rb:174:in `instrument_and_analyze'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/multiplex.rb:61:in `block in run_queries'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/tracing.rb:62:in `block in trace'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/tracing.rb:76:in `call_tracers'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/tracing.rb:62:in `trace'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/multiplex.rb:59:in `run_queries'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/execution/multiplex.rb:49:in `run_all'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/schema.rb:392:in `block in multiplex'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/schema.rb:1279:in `with_definition_error_check'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/schema.rb:391:in `multiplex'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.12/lib/graphql/schema.rb:368:in `execute'
/Users/justinbrulotte/.rvm/rubies/ruby-2.6.1/lib/ruby/2.6.0/forwardable.rb:230:in `execute'
/Users/justinbrulotte/Documents/ONE DRIVE/COMPAGNIE/EVENIX/CODE/evenix-web/backend/app/controllers/graphql_controller.rb:11:in `execute'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/abstract_controller/base.rb:194:in `process_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_controller/metal/rendering.rb:30:in `process_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:132:in `run_callbacks'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/abstract_controller/callbacks.rb:41:in `process_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_controller/metal/rescue.rb:22:in `process_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activesupport-5.2.3/lib/active_support/notifications.rb:168:in `block in instrument'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activesupport-5.2.3/lib/active_support/notifications/instrumenter.rb:23:in `instrument'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activesupport-5.2.3/lib/active_support/notifications.rb:168:in `instrument'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_controller/metal/instrumentation.rb:32:in `process_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_controller/metal/params_wrapper.rb:256:in `process_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activerecord-5.2.3/lib/active_record/railties/controller_runtime.rb:24:in `process_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/abstract_controller/base.rb:134:in `process'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_controller/metal.rb:191:in `dispatch'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_controller/metal.rb:252:in `dispatch'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/routing/route_set.rb:52:in `dispatch'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/routing/route_set.rb:34:in `serve'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/journey/router.rb:52:in `block in serve'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/journey/router.rb:35:in `each'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/journey/router.rb:35:in `serve'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/routing/route_set.rb:840:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/rack-attack-6.2.0/lib/rack/attack.rb:169:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/rack-2.0.7/lib/rack/etag.rb:25:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/rack-2.0.7/lib/rack/conditional_get.rb:38:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/rack-2.0.7/lib/rack/head.rb:12:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activerecord-5.2.3/lib/active_record/migration.rb:559:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:98:in `run_callbacks'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/middleware/executor.rb:14:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/railties-5.2.3/lib/rails/rack/logger.rb:38:in `call_app'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/railties-5.2.3/lib/rails/rack/logger.rb:26:in `block in call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activesupport-5.2.3/lib/active_support/tagged_logging.rb:71:in `block in tagged'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activesupport-5.2.3/lib/active_support/tagged_logging.rb:28:in `tagged'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activesupport-5.2.3/lib/active_support/tagged_logging.rb:71:in `tagged'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/railties-5.2.3/lib/rails/rack/logger.rb:26:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/middleware/request_id.rb:27:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/rack-2.0.7/lib/rack/runtime.rb:22:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activesupport-5.2.3/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/middleware/executor.rb:14:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/rack-2.0.7/lib/rack/sendfile.rb:111:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/rack-utf8_sanitizer-1.6.0/lib/rack/utf8_sanitizer.rb:22:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/railties-5.2.3/lib/rails/engine.rb:524:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/puma-3.12.1/lib/puma/configuration.rb:227:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/puma-3.12.1/lib/puma/server.rb:660:in `handle_request'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/puma-3.12.1/lib/puma/server.rb:474:in `process_client'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/puma-3.12.1/lib/puma/server.rb:334:in `block in run'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/puma-3.12.1/lib/puma/thread_pool.rb:135:in `block in spawn_thread'
Completed 500 Internal Server Error in 24ms (Views: 1.3ms | ActiveRecord: 0.0ms)
could you please share the edited source of the /evenix-web/backend/app/graphql/graph/context.rb? Maybe the caller (line 12) is still providing keyword arguments and needs to be updated, too.
That solve this problem ! I am now getting :
undefined method `definition' for #<Types::Query:0x00007fcecc5f5418>
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/query/context.rb:212:in `initialize'
/Users/justinbrulotte/Documents/ONE DRIVE/COMPAGNIE/EVENIX/CODE/evenix-web/backend/app/graphql/graph/context.rb:28:in `initialize'
/Users/justinbrulotte/Documents/ONE DRIVE/COMPAGNIE/EVENIX/CODE/evenix-web/backend/app/graphql/graph/context.rb:12:in `new'
/Users/justinbrulotte/Documents/ONE DRIVE/COMPAGNIE/EVENIX/CODE/evenix-web/backend/app/graphql/graph/context.rb:12:in `spawn_child'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/execute.rb:86:in `block in resolve_selection'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/execute.rb:85:in `each'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/execute.rb:85:in `resolve_selection'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/execute.rb:56:in `block in resolve_root_selection'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/tracing.rb:62:in `block in trace'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/tracing.rb:76:in `call_tracers'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/tracing.rb:62:in `trace'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/execute.rb:49:in `resolve_root_selection'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/execute.rb:31:in `begin_query'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/multiplex.rb:112:in `begin_query'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/multiplex.rb:84:in `block in run_as_multiplex'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/multiplex.rb:83:in `map'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/multiplex.rb:83:in `run_as_multiplex'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/multiplex.rb:62:in `block (2 levels) in run_queries'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/multiplex.rb:182:in `block in instrument_and_analyze'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/instrumentation.rb:29:in `block (2 levels) in apply_instrumenters'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/instrumentation.rb:46:in `block (2 levels) in each_query_call_hooks'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/instrumentation.rb:41:in `each_query_call_hooks'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/instrumentation.rb:45:in `block in each_query_call_hooks'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/instrumentation.rb:72:in `call_hooks'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/instrumentation.rb:44:in `each_query_call_hooks'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/instrumentation.rb:27:in `block in apply_instrumenters'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/instrumentation.rb:72:in `call_hooks'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/instrumentation.rb:26:in `apply_instrumenters'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/multiplex.rb:174:in `instrument_and_analyze'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/multiplex.rb:61:in `block in run_queries'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/tracing.rb:62:in `block in trace'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/tracing.rb:76:in `call_tracers'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/tracing.rb:62:in `trace'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/multiplex.rb:59:in `run_queries'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/execution/multiplex.rb:49:in `run_all'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/schema.rb:376:in `block in multiplex'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/schema.rb:1205:in `with_definition_error_check'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/schema.rb:375:in `multiplex'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/graphql-1.9.5/lib/graphql/schema.rb:352:in `execute'
/Users/justinbrulotte/.rvm/rubies/ruby-2.6.1/lib/ruby/2.6.0/forwardable.rb:230:in `execute'
/Users/justinbrulotte/Documents/ONE DRIVE/COMPAGNIE/EVENIX/CODE/evenix-web/backend/app/controllers/graphql_controller.rb:11:in `execute'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/abstract_controller/base.rb:194:in `process_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_controller/metal/rendering.rb:30:in `process_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:132:in `run_callbacks'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/abstract_controller/callbacks.rb:41:in `process_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_controller/metal/rescue.rb:22:in `process_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activesupport-5.2.3/lib/active_support/notifications.rb:168:in `block in instrument'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activesupport-5.2.3/lib/active_support/notifications/instrumenter.rb:23:in `instrument'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activesupport-5.2.3/lib/active_support/notifications.rb:168:in `instrument'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_controller/metal/instrumentation.rb:32:in `process_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_controller/metal/params_wrapper.rb:256:in `process_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activerecord-5.2.3/lib/active_record/railties/controller_runtime.rb:24:in `process_action'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/abstract_controller/base.rb:134:in `process'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_controller/metal.rb:191:in `dispatch'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_controller/metal.rb:252:in `dispatch'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/routing/route_set.rb:52:in `dispatch'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/routing/route_set.rb:34:in `serve'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/journey/router.rb:52:in `block in serve'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/journey/router.rb:35:in `each'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/journey/router.rb:35:in `serve'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/routing/route_set.rb:840:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/rack-attack-6.2.0/lib/rack/attack.rb:169:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/rack-2.0.7/lib/rack/etag.rb:25:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/rack-2.0.7/lib/rack/conditional_get.rb:38:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/rack-2.0.7/lib/rack/head.rb:12:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activerecord-5.2.3/lib/active_record/migration.rb:559:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activesupport-5.2.3/lib/active_support/callbacks.rb:98:in `run_callbacks'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/middleware/executor.rb:14:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/railties-5.2.3/lib/rails/rack/logger.rb:38:in `call_app'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/railties-5.2.3/lib/rails/rack/logger.rb:26:in `block in call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activesupport-5.2.3/lib/active_support/tagged_logging.rb:71:in `block in tagged'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activesupport-5.2.3/lib/active_support/tagged_logging.rb:28:in `tagged'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activesupport-5.2.3/lib/active_support/tagged_logging.rb:71:in `tagged'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/railties-5.2.3/lib/rails/rack/logger.rb:26:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/middleware/request_id.rb:27:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/rack-2.0.7/lib/rack/runtime.rb:22:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/activesupport-5.2.3/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/actionpack-5.2.3/lib/action_dispatch/middleware/executor.rb:14:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/rack-2.0.7/lib/rack/sendfile.rb:111:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/rack-utf8_sanitizer-1.6.0/lib/rack/utf8_sanitizer.rb:22:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/railties-5.2.3/lib/rails/engine.rb:524:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/puma-3.12.1/lib/puma/configuration.rb:227:in `call'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/puma-3.12.1/lib/puma/server.rb:660:in `handle_request'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/puma-3.12.1/lib/puma/server.rb:474:in `process_client'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/puma-3.12.1/lib/puma/server.rb:334:in `block in run'
/Users/justinbrulotte/.rvm/gems/ruby-2.6.1/gems/puma-3.12.1/lib/puma/thread_pool.rb:135:in `block in spawn_thread'
Completed 500 Internal Server Error in 157ms (Views: 1.5ms | ActiveRecord: 43.9ms)
I will be checking for the error in my imprementation.
For information my context.rb is :
module Graph
class Context < GraphQL::Query::Context
module SharedMethods
attr_accessor :evenix_context
attr_accessor :evenix_core
# Create a child context to use for `key`
# @param key [String, Integer] The key in the response (name or index)
# @param irep_node [InternalRepresentation::Node] The node being evaluated
# @api private
def spawn_child(key:, irep_node:, object:)
FieldResolutionContext.new(
@context,
self,
object,
key,
irep_node
)
end
end
include SharedMethods
class FieldResolutionContext < GraphQL::Query::Context::FieldResolutionContext
include SharedMethods
def initialize(context, key, irep_node, parent, object)
super
@evenix_context = parent.evenix_context
@evenix_core = parent.evenix_core
end
end
end
end
Thanks a lot again !
It looks like the arguments need to be reordered. In the caller, you have irep_node _last_:
FieldResolutionContext.new(
@context,
self,
object,
key,
irep_node # <--- here
)
But in the method signature, you have it third:
def initialize(context, key, irep_node, parent, object)
# ^^ here
How about reordering the inputs to .new so that they match the order in def initialize?
That fix ! Thanks a lot !!!