gql reponse confidentialite field

This commit is contained in:
Bachir Soussi Chiadmi 2024-06-04 15:43:48 +02:00
parent 12e0d6a07b
commit c3b9a1cc76
2 changed files with 9 additions and 0 deletions

View File

@ -108,6 +108,7 @@ type Reponse implements NodeInterface {
quoi: String quoi: String
ou: String ou: String
avec: String avec: String
confidentialite: String
} }
type Doleance implements NodeInterface { type Doleance implements NodeInterface {

View File

@ -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'))
);
} }
// ____ _ // ____ _