gql reponse confidentialite field
This commit is contained in:
parent
12e0d6a07b
commit
c3b9a1cc76
@ -108,6 +108,7 @@ type Reponse implements NodeInterface {
|
||||
quoi: String
|
||||
ou: String
|
||||
avec: String
|
||||
confidentialite: String
|
||||
}
|
||||
|
||||
type Doleance implements NodeInterface {
|
||||
|
@ -937,6 +937,14 @@ class OuattSchemaExtension extends SdlSchemaExtensionPluginBase {
|
||||
})
|
||||
)
|
||||
);
|
||||
|
||||
$registry->addFieldResolver('Reponse', 'confidentialite',
|
||||
$builder->produce('property_path')
|
||||
->map('type', $builder->fromValue('entity:node'))
|
||||
->map('value', $builder->fromParent())
|
||||
->map('path', $builder->fromValue('field_confidentialite.value'))
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
// ____ _
|
||||
|
Loading…
x
Reference in New Issue
Block a user