debian-mirror-gitlab/app/graphql/mutations/notes/update/note.rb

28 lines
667 B
Ruby
Raw Normal View History

2020-03-13 15:44:24 +05:30
# frozen_string_literal: true
module Mutations
module Notes
module Update
class Note < Mutations::Notes::Update::Base
graphql_name 'UpdateNote'
argument :body,
GraphQL::STRING_TYPE,
2020-10-24 23:57:45 +05:30
required: false,
2020-03-13 15:44:24 +05:30
description: copy_field_description(Types::Notes::NoteType, :body)
2020-10-24 23:57:45 +05:30
argument :confidential,
GraphQL::BOOLEAN_TYPE,
required: false,
description: 'The confidentiality flag of a note. Default is false.'
2020-03-13 15:44:24 +05:30
private
2021-01-03 14:25:43 +05:30
def pre_update_checks!(_note, _args)
# no-op
2020-03-13 15:44:24 +05:30
end
end
end
end
end