Welcome to mirror list, hosted at ThFree Co, Russian Federation.

linked_items_type.rb « widgets « work_items « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fa51742b9c1fc48e4f493b3c761e2ef81b49af7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# frozen_string_literal: true

module Types
  module WorkItems
    module Widgets
      # rubocop:disable Graphql/AuthorizeTypes
      class LinkedItemsType < BaseObject
        graphql_name 'WorkItemWidgetLinkedItems'
        description 'Represents the linked items widget'

        implements Types::WorkItems::WidgetInterface

        field :linked_items, Types::WorkItems::LinkedItemType.connection_type,
          null: true, complexity: 5,
          alpha: { milestone: '16.3' },
          description: 'Linked items for the work item. Returns `null`' \
                       'if `linked_work_items` feature flag is disabled.',
          resolver: Resolvers::WorkItems::LinkedItemsResolver
      end
      # rubocop:enable Graphql/AuthorizeTypes
    end
  end
end

Types::WorkItems::Widgets::LinkedItemsType.prepend_mod