doleance graphql some fixes
This commit is contained in:
parent
ed3c3f9f00
commit
f7ba923e56
|
@ -94,7 +94,7 @@ type Doleance implements NodeInterface {
|
||||||
decision_formule: String
|
decision_formule: String
|
||||||
mise_en_oeuvre_decision: [MiseEnoeuvreDecision]
|
mise_en_oeuvre_decision: [MiseEnoeuvreDecision]
|
||||||
#4
|
#4
|
||||||
entite_addresse_application: String
|
entite_adresse_application: String
|
||||||
aqui_adresse_decision: String
|
aqui_adresse_decision: String
|
||||||
comment_formule_decision: String
|
comment_formule_decision: String
|
||||||
receptions_et_applications: [ReceptionsApplications]
|
receptions_et_applications: [ReceptionsApplications]
|
||||||
|
|
|
@ -766,7 +766,7 @@ class OuattSchemaExtension extends SdlSchemaExtensionPluginBase {
|
||||||
->map('entity', $builder->fromParent())
|
->map('entity', $builder->fromParent())
|
||||||
));
|
));
|
||||||
|
|
||||||
$registry->addFieldResolver('Entite', 'author',
|
$registry->addFieldResolver('Doleance', 'author',
|
||||||
$builder->compose(
|
$builder->compose(
|
||||||
$builder->produce('entity_owner')
|
$builder->produce('entity_owner')
|
||||||
->map('entity', $builder->fromParent()),
|
->map('entity', $builder->fromParent()),
|
||||||
|
@ -850,11 +850,11 @@ class OuattSchemaExtension extends SdlSchemaExtensionPluginBase {
|
||||||
|
|
||||||
// #4
|
// #4
|
||||||
// entite_addresse_application: String
|
// entite_addresse_application: String
|
||||||
$registry->addFieldResolver('Doleance', 'entite_addresse_application',
|
$registry->addFieldResolver('Doleance', 'entite_adresse_application',
|
||||||
$builder->produce('property_path')
|
$builder->produce('property_path')
|
||||||
->map('type', $builder->fromValue('entity:node'))
|
->map('type', $builder->fromValue('entity:node'))
|
||||||
->map('value', $builder->fromParent())
|
->map('value', $builder->fromParent())
|
||||||
->map('path', $builder->fromValue('field_entite_addresse_application.value'))
|
->map('path', $builder->fromValue('field_entite_adresse_application.value'))
|
||||||
);
|
);
|
||||||
// aqui_adresse_decision: String
|
// aqui_adresse_decision: String
|
||||||
$registry->addFieldResolver('Doleance', 'aqui_adresse_decision',
|
$registry->addFieldResolver('Doleance', 'aqui_adresse_decision',
|
||||||
|
@ -937,28 +937,28 @@ class OuattSchemaExtension extends SdlSchemaExtensionPluginBase {
|
||||||
// |_|
|
// |_|
|
||||||
protected function addReceptionTraitement(ResolverRegistryInterface $registry, ResolverBuilder $builder) {
|
protected function addReceptionTraitement(ResolverRegistryInterface $registry, ResolverBuilder $builder) {
|
||||||
// entite_adressee: String
|
// entite_adressee: String
|
||||||
$registry->addFieldResolver('GroupeInterets', 'entite_adressee',
|
$registry->addFieldResolver('ReceptionTraitement', 'entite_adressee',
|
||||||
$builder->produce('property_path')
|
$builder->produce('property_path')
|
||||||
->map('type', $builder->fromValue('entity:paragraph'))
|
->map('type', $builder->fromValue('entity:paragraph'))
|
||||||
->map('value', $builder->fromParent())
|
->map('value', $builder->fromParent())
|
||||||
->map('path', $builder->fromValue('field_entite_adressee.value'))
|
->map('path', $builder->fromValue('field_entite_adressee.value'))
|
||||||
);
|
);
|
||||||
// doleance_formulee: String
|
// doleance_formulee: String
|
||||||
$registry->addFieldResolver('GroupeInterets', 'doleance_formulee',
|
$registry->addFieldResolver('ReceptionTraitement', 'doleance_formulee',
|
||||||
$builder->produce('property_path')
|
$builder->produce('property_path')
|
||||||
->map('type', $builder->fromValue('entity:paragraph'))
|
->map('type', $builder->fromValue('entity:paragraph'))
|
||||||
->map('value', $builder->fromParent())
|
->map('value', $builder->fromParent())
|
||||||
->map('path', $builder->fromValue('field_doleance_formulee.value'))
|
->map('path', $builder->fromValue('field_doleance_formulee.value'))
|
||||||
);
|
);
|
||||||
// traite_doleance: String
|
// traite_doleance: String
|
||||||
$registry->addFieldResolver('GroupeInterets', 'traite_doleance',
|
$registry->addFieldResolver('ReceptionTraitement', 'traite_doleance',
|
||||||
$builder->produce('property_path')
|
$builder->produce('property_path')
|
||||||
->map('type', $builder->fromValue('entity:paragraph'))
|
->map('type', $builder->fromValue('entity:paragraph'))
|
||||||
->map('value', $builder->fromParent())
|
->map('value', $builder->fromParent())
|
||||||
->map('path', $builder->fromValue('field_traite_doleance.value'))
|
->map('path', $builder->fromValue('field_traite_doleance.value'))
|
||||||
);
|
);
|
||||||
// entite_recoit_doleance: String
|
// entite_recoit_doleance: String
|
||||||
$registry->addFieldResolver('GroupeInterets', 'entite_recoit_doleance',
|
$registry->addFieldResolver('ReceptionTraitement', 'entite_recoit_doleance',
|
||||||
$builder->produce('property_path')
|
$builder->produce('property_path')
|
||||||
->map('type', $builder->fromValue('entity:paragraph'))
|
->map('type', $builder->fromValue('entity:paragraph'))
|
||||||
->map('value', $builder->fromParent())
|
->map('value', $builder->fromParent())
|
||||||
|
|
Loading…
Reference in New Issue