From f7ba923e568b75b186eec50df2e9e5851d470534 Mon Sep 17 00:00:00 2001 From: bach Date: Fri, 2 Jun 2023 11:26:54 +0200 Subject: [PATCH] doleance graphql some fixes --- .../graphql/ouatt_extension.base.graphqls | 2 +- .../SchemaExtension/OuattSchemaExtension.php | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/web/modules/custom/ouatt_graphql/graphql/ouatt_extension.base.graphqls b/src/web/modules/custom/ouatt_graphql/graphql/ouatt_extension.base.graphqls index 68962c4..9489e04 100644 --- a/src/web/modules/custom/ouatt_graphql/graphql/ouatt_extension.base.graphqls +++ b/src/web/modules/custom/ouatt_graphql/graphql/ouatt_extension.base.graphqls @@ -94,7 +94,7 @@ type Doleance implements NodeInterface { decision_formule: String mise_en_oeuvre_decision: [MiseEnoeuvreDecision] #4 - entite_addresse_application: String + entite_adresse_application: String aqui_adresse_decision: String comment_formule_decision: String receptions_et_applications: [ReceptionsApplications] diff --git a/src/web/modules/custom/ouatt_graphql/src/Plugin/GraphQL/SchemaExtension/OuattSchemaExtension.php b/src/web/modules/custom/ouatt_graphql/src/Plugin/GraphQL/SchemaExtension/OuattSchemaExtension.php index 4b3983d..0b6e976 100644 --- a/src/web/modules/custom/ouatt_graphql/src/Plugin/GraphQL/SchemaExtension/OuattSchemaExtension.php +++ b/src/web/modules/custom/ouatt_graphql/src/Plugin/GraphQL/SchemaExtension/OuattSchemaExtension.php @@ -766,7 +766,7 @@ class OuattSchemaExtension extends SdlSchemaExtensionPluginBase { ->map('entity', $builder->fromParent()) )); - $registry->addFieldResolver('Entite', 'author', + $registry->addFieldResolver('Doleance', 'author', $builder->compose( $builder->produce('entity_owner') ->map('entity', $builder->fromParent()), @@ -850,11 +850,11 @@ class OuattSchemaExtension extends SdlSchemaExtensionPluginBase { // #4 // entite_addresse_application: String - $registry->addFieldResolver('Doleance', 'entite_addresse_application', + $registry->addFieldResolver('Doleance', 'entite_adresse_application', $builder->produce('property_path') ->map('type', $builder->fromValue('entity:node')) ->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 $registry->addFieldResolver('Doleance', 'aqui_adresse_decision', @@ -937,28 +937,28 @@ class OuattSchemaExtension extends SdlSchemaExtensionPluginBase { // |_| protected function addReceptionTraitement(ResolverRegistryInterface $registry, ResolverBuilder $builder) { // entite_adressee: String - $registry->addFieldResolver('GroupeInterets', 'entite_adressee', + $registry->addFieldResolver('ReceptionTraitement', 'entite_adressee', $builder->produce('property_path') ->map('type', $builder->fromValue('entity:paragraph')) ->map('value', $builder->fromParent()) ->map('path', $builder->fromValue('field_entite_adressee.value')) ); // doleance_formulee: String - $registry->addFieldResolver('GroupeInterets', 'doleance_formulee', + $registry->addFieldResolver('ReceptionTraitement', 'doleance_formulee', $builder->produce('property_path') ->map('type', $builder->fromValue('entity:paragraph')) ->map('value', $builder->fromParent()) ->map('path', $builder->fromValue('field_doleance_formulee.value')) ); // traite_doleance: String - $registry->addFieldResolver('GroupeInterets', 'traite_doleance', + $registry->addFieldResolver('ReceptionTraitement', 'traite_doleance', $builder->produce('property_path') ->map('type', $builder->fromValue('entity:paragraph')) ->map('value', $builder->fromParent()) ->map('path', $builder->fromValue('field_traite_doleance.value')) ); // entite_recoit_doleance: String - $registry->addFieldResolver('GroupeInterets', 'entite_recoit_doleance', + $registry->addFieldResolver('ReceptionTraitement', 'entite_recoit_doleance', $builder->produce('property_path') ->map('type', $builder->fromValue('entity:paragraph')) ->map('value', $builder->fromParent()) @@ -994,7 +994,7 @@ class OuattSchemaExtension extends SdlSchemaExtensionPluginBase { ->map('path', $builder->fromValue('field_entite_metenoeuvre_decisio.value')) ); } - + // ____ _ _ _ _ _ _ _ // | _ \ ___ ___ ___ _ __ | |_(_) ___ _ __ ___ / \ _ __ _ __ | (_) ___ __ _| |_(_) ___ _ __ ___ // | |_) / _ \/ __/ _ \ '_ \| __| |/ _ \| '_ \/ __| / _ \ | '_ \| '_ \| | |/ __/ _` | __| |/ _ \| '_ \/ __|