blob: f16937530b9f0118df50be3418b0543393a7e3d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# 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
package_path(object)
end
end
end
end
|