summaryrefslogtreecommitdiff
path: root/app/graphql/mutations/todos/mark_all_done.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/mutations/todos/mark_all_done.rb')
-rw-r--r--app/graphql/mutations/todos/mark_all_done.rb6
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