[graphql] add demarchesPubliques to query
This commit is contained in:
parent
b56706b6b8
commit
78d772441b
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue