-
-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
Following is a example:
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
endabove 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
endthough, i consider this should not the reason, because another class define like this, not work too.
module Types
module UserQuery
class UserNameType
end
end
endAnd, i use rails 6, autoloading feature use zeitwerk.
Metadata
Metadata
Assignees
Labels
No labels