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

diff_position_input_type.rb « notes « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 02c91e173cb3d102279b4050f0d521e842ecca6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

module Types
  module Notes
    # rubocop: disable Graphql/AuthorizeTypes
    class DiffPositionInputType < DiffPositionBaseInputType
      graphql_name 'DiffPositionInput'

      argument :old_line, GraphQL::INT_TYPE, required: false,
               description: copy_field_description(Types::Notes::DiffPositionType, :old_line)
      argument :new_line, GraphQL::INT_TYPE, required: true,
               description: copy_field_description(Types::Notes::DiffPositionType, :new_line)
    end
    # rubocop: enable Graphql/AuthorizeTypes
  end
end