18 lines
445 B
Ruby
18 lines
445 B
Ruby
|
module Mutations
|
|||
|
class DossierModifierAnnotationDatetime < Mutations::DossierModifierAnnotation
|
|||
|
description "Modifier l’annotation au format date et heure."
|
|||
|
|
|||
|
argument :value, GraphQL::Types::ISO8601DateTime, required: true
|
|||
|
|
|||
|
def resolve(dossier:, annotation_id:, instructeur:, value:)
|
|||
|
resolve_with_type(
|
|||
|
:datetime,
|
|||
|
dossier,
|
|||
|
annotation_id,
|
|||
|
instructeur,
|
|||
|
value
|
|||
|
)
|
|||
|
end
|
|||
|
end
|
|||
|
end
|