diff options
Diffstat (limited to 'app/graphql/types/extended_issue_type.rb')
-rw-r--r-- | app/graphql/types/extended_issue_type.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/app/graphql/types/extended_issue_type.rb b/app/graphql/types/extended_issue_type.rb new file mode 100644 index 00000000000..e007c1109a3 --- /dev/null +++ b/app/graphql/types/extended_issue_type.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Types + class ExtendedIssueType < IssueType + graphql_name 'ExtendedIssue' + + authorize :read_issue + expose_permissions Types::PermissionTypes::Issue + present_using IssuePresenter + + field :subscribed, GraphQL::BOOLEAN_TYPE, method: :subscribed?, null: false, complexity: 5, + description: 'Boolean flag for whether the currently logged in user is subscribed to this issue' + end +end |