Jelajahi Sumber

doleance graphql some fixes

bach 1 tahun lalu
induk
melakukan
f7ba923e56

+ 1 - 1
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]

+ 8 - 8
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'))
       );
   }
-  
+
   //   ____                     _   _                      _                _ _           _   _                 
   //  |  _ \ ___  ___ ___ _ __ | |_(_) ___  _ __  ___     / \   _ __  _ __ | (_) ___ __ _| |_(_) ___  _ __  ___ 
   //  | |_) / _ \/ __/ _ \ '_ \| __| |/ _ \| '_ \/ __|   / _ \ | '_ \| '_ \| | |/ __/ _` | __| |/ _ \| '_ \/ __|