blob: eb29fb655bd69139bcf575cfe2f60ad3f5f8c5c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# frozen_string_literal: true
module Types
module Packages
class PackageLinksType < BaseObject
graphql_name 'PackageLinks'
description 'Represents links to perform actions on the package'
authorize :read_package
include ::Routing::PackagesHelper
field :web_path, GraphQL::Types::String, null: true, description: 'Path to the package details page.'
def web_path
return unless object.default?
package_path(object)
end
end
end
end
|