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