Module: Resolvers::FullPathResolver

Extended by:
ActiveSupport::Concern
Included in:
GroupResolver, NamespaceResolver, ProjectResolver
Defined in:
app/graphql/resolvers/full_path_resolver.rb

Instance Method Summary collapse

Instance Method Details

#model_by_full_path(model, full_path) ⇒ Object



13
14
15
# File 'app/graphql/resolvers/full_path_resolver.rb', line 13

def model_by_full_path(model, full_path)
  ::Gitlab::Graphql::Loaders::FullPathModelLoader.new(model, full_path).find
end