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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/types/notes/deleted_note_type.rb')
-rw-r--r--app/graphql/types/notes/deleted_note_type.rb23
1 files changed, 23 insertions, 0 deletions
diff --git a/app/graphql/types/notes/deleted_note_type.rb b/app/graphql/types/notes/deleted_note_type.rb
new file mode 100644
index 00000000000..f799fc01f6e
--- /dev/null
+++ b/app/graphql/types/notes/deleted_note_type.rb
@@ -0,0 +1,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