debian-mirror-gitlab/app/graphql/mutations/notes/update/note.rb
2020-10-24 23:57:45 +05:30

27 lines
686 B
Ruby

# frozen_string_literal: true
module Mutations
module Notes
module Update
class Note < Mutations::Notes::Update::Base
graphql_name 'UpdateNote'
argument :body,
GraphQL::STRING_TYPE,
required: false,
description: copy_field_description(Types::Notes::NoteType, :body)
argument :confidential,
GraphQL::BOOLEAN_TYPE,
required: false,
description: 'The confidentiality flag of a note. Default is false.'
private
def pre_update_checks!(note, _args)
check_object_is_note!(note)
end
end
end
end
end