summaryrefslogtreecommitdiff
path: root/app/graphql/mutations/todos/restore_many.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/graphql/mutations/todos/restore_many.rb')
-rw-r--r--app/graphql/mutations/todos/restore_many.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/graphql/mutations/todos/restore_many.rb b/app/graphql/mutations/todos/restore_many.rb
index e95651b232f..c5e2750768c 100644
--- a/app/graphql/mutations/todos/restore_many.rb
+++ b/app/graphql/mutations/todos/restore_many.rb
@@ -14,7 +14,12 @@ module Mutations
field :updated_ids, [GraphQL::ID_TYPE],
null: false,
- description: 'The ids of the updated todo items'
+ description: 'The ids of the updated todo items',
+ deprecated: { reason: 'Use todos', milestone: '13.2' }
+
+ field :todos, [::Types::TodoType],
+ null: false,
+ description: 'Updated todos'
def resolve(ids:)
check_update_amount_limit!(ids)
@@ -24,6 +29,7 @@ module Mutations
{
updated_ids: gids_of(updated_ids),
+ todos: Todo.id_in(updated_ids),
errors: errors_on_objects(todos)
}
end