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

20 lines
478 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2020-07-28 18:16:03 +02:00
module Mutations
class DossierModifierAnnotationDatetime < Mutations::DossierModifierAnnotation
description "Modifier lannotation au format date et heure."
argument :value, GraphQL::Types::ISO8601DateTime, 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
:datetime
end
2020-07-28 18:16:03 +02:00
end
end