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

deleted_note_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: f799fc01f6ea22465483d8bd733fd6378f301541 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# frozen_string_literal: true

module Types
  module Notes
    # rubocop: disable Graphql/AuthorizeTypes
    class DeletedNoteType < BaseObject
      graphql_name 'DeletedNote'

      field :id, ::Types::GlobalIDType[::Note],
        null: false,
        description: 'ID of the deleted note.'

      field :discussion_id, ::Types::GlobalIDType[::Discussion],
        null: true,
        description: 'ID of the discussion for the deleted note.'

      field :last_discussion_note, GraphQL::Types::Boolean,
        null: true,
        description: 'Whether deleted note is the last note in the discussion.'
    end
    # rubocop: enable Graphql/AuthorizeTypes
  end
end