Class: Types::Ci::Catalog::Resources::VersionType
- Inherits:
-
BaseObject
- Object
- GraphQL::Schema::Object
- BaseObject
- Types::Ci::Catalog::Resources::VersionType
- Defined in:
- app/graphql/types/ci/catalog/resources/version_type.rb
Overview
rubocop: disable Graphql/AuthorizeTypes – Authorization is handled by Ci::Catalog::Resources
Instance Method Summary collapse
Methods inherited from BaseObject
accepts, assignable?, authorization, authorization_scopes, authorize, authorized?, #current_user, #id
Methods included from Gitlab::Graphql::Present
Instance Method Details
#author ⇒ Object
47 48 49 |
# File 'app/graphql/types/ci/catalog/resources/version_type.rb', line 47 def Gitlab::Graphql::Loaders::BatchModelLoader.new(User, object.).find end |
#readme_html_resolver ⇒ Object
42 43 44 45 |
# File 'app/graphql/types/ci/catalog/resources/version_type.rb', line 42 def readme_html_resolver ctx = context.to_h.dup.merge(project: object.project) ::MarkupHelper.markdown(object.readme, ctx, { requested_path: object.project.path }) end |