demarches-normaliennes/app/graphql/mutations/dossier_modifier_annotation_integer_number.rb
2022-07-21 14:54:14 +02:00

22 lines
510 B
Ruby
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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
)
end
private
def input_type
:integer_number
end
end
end