16 lines
423 B
Ruby
16 lines
423 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Mutations
|
|
module Todos
|
|
class Base < ::Mutations::BaseMutation
|
|
private
|
|
|
|
def find_object(id:)
|
|
# TODO: remove this line when the compatibility layer is removed
|
|
# See: https://gitlab.com/gitlab-org/gitlab/-/issues/257883
|
|
id = ::Types::GlobalIDType[::Todo].coerce_isolated_input(id)
|
|
GitlabSchema.find_by_gid(id)
|
|
end
|
|
end
|
|
end
|
|
end
|