diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-07-20 15:26:25 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-07-20 15:26:25 +0300 |
commit | a09983ae35713f5a2bbb100981116d31ce99826e (patch) | |
tree | 2ee2af7bd104d57086db360a7e6d8c9d5d43667a /app/graphql/mutations/todos/mark_all_done.rb | |
parent | 18c5ab32b738c0b6ecb4d0df3994000482f34bd8 (diff) |
Add latest changes from gitlab-org/gitlab@13-2-stable-ee
Diffstat (limited to 'app/graphql/mutations/todos/mark_all_done.rb')
-rw-r--r-- | app/graphql/mutations/todos/mark_all_done.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/graphql/mutations/todos/mark_all_done.rb b/app/graphql/mutations/todos/mark_all_done.rb index d30d1bcbcf0..8b53658ddd5 100644 --- a/app/graphql/mutations/todos/mark_all_done.rb +++ b/app/graphql/mutations/todos/mark_all_done.rb @@ -10,8 +10,13 @@ module Mutations field :updated_ids, [GraphQL::ID_TYPE], null: false, + deprecated: { reason: 'Use todos', milestone: '13.2' }, description: 'Ids of the updated todos' + field :todos, [::Types::TodoType], + null: false, + description: 'Updated todos' + def resolve authorize!(current_user) @@ -19,6 +24,7 @@ module Mutations { updated_ids: map_to_global_ids(updated_ids), + todos: Todo.id_in(updated_ids), errors: [] } end |