summaryrefslogtreecommitdiff
path: root/app/graphql/types/release_asset_link_type.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/types/release_asset_link_type.rb')
-rw-r--r--app/graphql/types/release_asset_link_type.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/graphql/types/release_asset_link_type.rb b/app/graphql/types/release_asset_link_type.rb
index 829e7e246db..02961f2f73f 100644
--- a/app/graphql/types/release_asset_link_type.rb
+++ b/app/graphql/types/release_asset_link_type.rb
@@ -7,20 +7,20 @@ module Types
authorize :read_release
- field :id, GraphQL::ID_TYPE, null: false,
+ field :id, GraphQL::Types::ID, null: false,
description: 'ID of the link.'
- field :name, GraphQL::STRING_TYPE, null: true,
+ field :name, GraphQL::Types::String, null: true,
description: 'Name of the link.'
- field :url, GraphQL::STRING_TYPE, null: true,
+ field :url, GraphQL::Types::String, null: true,
description: 'URL of the link.'
field :link_type, Types::ReleaseAssetLinkTypeEnum, null: true,
description: 'Type of the link: `other`, `runbook`, `image`, `package`; defaults to `other`.'
- field :external, GraphQL::BOOLEAN_TYPE, null: true, method: :external?,
+ field :external, GraphQL::Types::Boolean, null: true, method: :external?,
description: 'Indicates the link points to an external resource.'
- field :direct_asset_url, GraphQL::STRING_TYPE, null: true,
+ field :direct_asset_url, GraphQL::Types::String, null: true,
description: 'Direct asset URL of the link.'
- field :direct_asset_path, GraphQL::STRING_TYPE, null: true, method: :filepath,
+ field :direct_asset_path, GraphQL::Types::String, null: true, method: :filepath,
description: 'Relative path for the direct asset link.'
def direct_asset_url