[GraphQL] Add groupe_instructeurs to demarche

This commit is contained in:
Paul Chavard 2019-09-24 19:41:48 +02:00
parent ab72ac0325
commit 3f36153807
4 changed files with 37 additions and 4 deletions

View file

@ -24,6 +24,12 @@ describe API::V2::GraphqlController do
createdAt
updatedAt
archivedAt
groupeInstructeurs {
label
instructeurs {
email
}
}
champDescriptors {
id
type
@ -67,6 +73,7 @@ describe API::V2::GraphqlController do
archivedAt: nil,
createdAt: procedure.created_at.iso8601,
updatedAt: procedure.updated_at.iso8601,
groupeInstructeurs: [{ instructeurs: [], label: "défaut" }],
champDescriptors: procedure.types_de_champ.map do |tdc|
{
id: tdc.to_typed_id,