debian-mirror-gitlab/app/graphql/mutations/notes/base.rb
2022-07-17 14:43:12 +02:00

24 lines
530 B
Ruby

# frozen_string_literal: true
module Mutations
module Notes
class Base < BaseMutation
QUICK_ACTION_ONLY_WARNING = <<~NB
If the body of the Note contains only quick actions,
the Note will be destroyed during an update, and no Note will be
returned.
NB
field :note,
Types::Notes::NoteType,
null: true,
description: 'Note after mutation.'
private
def find_object(id:)
GitlabSchema.find_by_gid(id)
end
end
end
end