module Types
module UserQuery
class UserQueryType < Types::BaseObject
field :current_user, resolver: Types::UserQuery::Resolvers::CurrentUserResolver # case 1
field :current_user, resolver: Resolvers::CurrentUserResolver # case 2
end
end
above case 1 and case 2 field have same effect.
When cursor on the case 1 CurrentUserResolver, robe jump feature is works!
But.
When cursour on the case 2 CurrentUserResolver, will tip Can't find the locatin.
but code case 2 actually is working code, totally same as case 1, because Resolvers::CurrentUserResolver
is under namespaced module, module Types => module => UserQuery => Resolvers::CurrentUserResolver
I can reproduce this on ruby 3.1.0 with inf-ruby newest master.
Thank you.
Added:
CurrentUserResolver defined like this,
class Types::UserQuery::Resolvers::CurrentUserResolver < Resolvers::Base
end
though, i consider this should not the reason, because another class define like this, not work too.
module Types
module UserQuery
class UserNameType
end
end
end
And, i use rails 6, autoloading feature use zeitwerk.
Following is a example:
above
case 1
andcase 2
field have same effect.When cursor on the case 1
CurrentUserResolver
, robe jump feature is works!But.
When cursour on the case 2
CurrentUserResolver
, will tipCan't find the locatin
. but code case 2 actually is working code, totally same as case 1, becauseResolvers::CurrentUserResolver
is under namespaced module,module Types => module => UserQuery => Resolvers::CurrentUserResolver
I can reproduce this on ruby 3.1.0 with inf-ruby newest master.
Thank you.
Added:
CurrentUserResolver defined like this,
though, i consider this should not the reason, because another class define like this, not work too.
And, i use rails 6, autoloading feature use zeitwerk.