summaryrefslogtreecommitdiff
path: root/app/graphql/types/alert_management/alert_type.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/types/alert_management/alert_type.rb')
-rw-r--r--app/graphql/types/alert_management/alert_type.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/app/graphql/types/alert_management/alert_type.rb b/app/graphql/types/alert_management/alert_type.rb
index 5a2a5c68c8d..7cad62b9bfe 100644
--- a/app/graphql/types/alert_management/alert_type.rb
+++ b/app/graphql/types/alert_management/alert_type.rb
@@ -115,11 +115,9 @@ module Types
null: true,
description: 'Runbook for the alert as defined in alert details.'
- field :todos,
- Types::TodoType.connection_type,
- null: true,
- description: 'To-do items of the current user for the alert.',
- resolver: Resolvers::TodoResolver
+ field :todos, description: 'To-do items of the current user for the alert.', resolver: Resolvers::TodoResolver do
+ extension(::Gitlab::Graphql::TodosProjectPermissionPreloader::FieldExtension)
+ end
field :details_url,
GraphQL::STRING_TYPE,