[graphql] add demarchesPubliques to query

This commit is contained in:
Christophe Robillard 2022-06-14 16:25:20 +02:00
parent b56706b6b8
commit 78d772441b

View file

@ -12,6 +12,12 @@ module Types
argument :number, Int, "Numéro du groupe instructeur.", required: true
end
field :demarches_publiques, DemarcheDescriptorType.connection_type, null: false
def demarches_publiques
Procedure.publiques
end
def demarche(number:)
Procedure.for_api_v2.find(number)
rescue => e