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/abuse_report_type.rb')
-rw-r--r--app/graphql/types/abuse_report_type.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/graphql/types/abuse_report_type.rb b/app/graphql/types/abuse_report_type.rb
new file mode 100644
index 00000000000..012e709cdb5
--- /dev/null
+++ b/app/graphql/types/abuse_report_type.rb
@@ -0,0 +1,12 @@
+# frozen_string_literal: true
+
+module Types
+ class AbuseReportType < BaseObject
+ graphql_name 'AbuseReport'
+ description 'An abuse report'
+ authorize :read_abuse_report
+
+ field :labels, ::Types::LabelType.connection_type,
+ null: true, description: 'Labels of the abuse report.'
+ end
+end