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

23 lines
510 B
Ruby
Raw Normal View History

2020-07-28 18:16:03 +02:00
module Mutations
class DossierModifierAnnotationIntegerNumber < Mutations::DossierModifierAnnotation
description "Modifier lannotation au format nombre entier."
argument :value, Int, required: true
def resolve(dossier:, annotation_id:, instructeur:, value:)
resolve_with_type(
dossier: dossier,
annotation_id: annotation_id,
instructeur: instructeur,
value: value
2020-07-28 18:16:03 +02:00
)
end
private
def input_type
:integer_number
end
2020-07-28 18:16:03 +02:00
end
end