gql besoins confidentialite field
This commit is contained in:
parent
ab16a9f516
commit
12e0d6a07b
@ -90,6 +90,7 @@ type Besoin implements NodeInterface {
|
||||
index: Int
|
||||
concernement: Concernement
|
||||
reponses: [Reponse]
|
||||
confidentialite: String
|
||||
}
|
||||
|
||||
type Reponse implements NodeInterface {
|
||||
|
@ -805,6 +805,14 @@ class OuattSchemaExtension extends SdlSchemaExtensionPluginBase {
|
||||
})
|
||||
)
|
||||
);
|
||||
|
||||
$registry->addFieldResolver('Besoin', '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