summaryrefslogtreecommitdiff
path: root/app/graphql/types/notes/noteable_type.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/types/notes/noteable_type.rb')
-rw-r--r--app/graphql/types/notes/noteable_type.rb31
1 files changed, 0 insertions, 31 deletions
diff --git a/app/graphql/types/notes/noteable_type.rb b/app/graphql/types/notes/noteable_type.rb
deleted file mode 100644
index a82a76f9c87..00000000000
--- a/app/graphql/types/notes/noteable_type.rb
+++ /dev/null
@@ -1,31 +0,0 @@
-# frozen_string_literal: true
-
-module Types
- module Notes
- module NoteableType
- include Types::BaseInterface
-
- field :notes, Types::Notes::NoteType.connection_type, null: false, description: "All notes on this noteable."
- field :discussions, Types::Notes::DiscussionType.connection_type, null: false, description: "All discussions on this noteable."
-
- def self.resolve_type(object, context)
- case object
- when Issue
- Types::IssueType
- when MergeRequest
- Types::MergeRequestType
- when Snippet
- Types::SnippetType
- when ::DesignManagement::Design
- Types::DesignManagement::DesignType
- when ::AlertManagement::Alert
- Types::AlertManagement::AlertType
- else
- raise "Unknown GraphQL type for #{object}"
- end
- end
- end
- end
-end
-
-Types::Notes::NoteableType.prepend_mod_with('Types::Notes::NoteableType')