demarches-normaliennes/app/graphql/mutations/dossier_modifier_annotation_date.rb

18 lines
426 B
Ruby
Raw Normal View History

2020-07-28 18:16:03 +02:00
module Mutations
class DossierModifierAnnotationDate < Mutations::DossierModifierAnnotation
description "Modifier lannotation au format date."
argument :value, GraphQL::Types::ISO8601Date, required: true
def resolve(dossier:, annotation_id:, instructeur:, value:)
resolve_with_type(dossier:, annotation_id:, instructeur:, value:)
2020-07-28 18:16:03 +02:00
end
private
def input_type
:date
end
2020-07-28 18:16:03 +02:00
end
end